Trespo / WitherPoop

haha wither go poooooop
0 stars 0 forks source link

Moses pointers 4 - unneeded else #4

Closed mosemister closed 3 years ago

mosemister commented 3 years ago

https://github.com/Trespo/WitherPoop/blob/6ef6522057736f38322a035f8a98af07aa53f0b9/src/me/trespo/witherpoop/commands/WitherPoopCommand.java#L43

Here you are checking permissions, then returning true if the player has permission.

The else statement on that if permission check is useless as you are returning within the if statement. Makes your code cleaner :)