Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix filterHidden in GuildImpl#getChannels (#2151)
- Loading branch information
1 parent
4f7b413
commit f54e392
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f54e392
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possibility to change the return statement into one, instead of using an if statement to then later cast and check it? This would merge both statement as example
return it instanceof IPermissionContainer && self.hasPermission((IPermissionContainer) it, Permission.VIEW_CHANNEL)
f54e392
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ugly imho, this is more readable
And uh, no-one will see this comment
f54e392
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really? In my opinion it would look better if it would be like this.
f54e392
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah my bad I was idiotic, I guess looks fine, have no preference over either