Skip to content

Commit d342642

Browse files
committed
Minor changes and code cleanup
1 parent 097e61d commit d342642

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<img src=".github/assets/backend.png" alt="Backend Foxogram Floof.">
1+
<img src=".github/assets/backend.png" alt="Backend FoxoCorp">
22
<img src=".github/assets/backend_desc.png" alt="Server side of the Foxogram messenger developed in Java">
33
<img src=".github/assets/backend_resources.png" alt="## Resources">
44

foxogram-common/src/main/java/su/foxogram/models/Member.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,19 @@ public boolean hasPermission(MemberConstants.Permissions permission) {
5959
return (this.permissions & permission.getBit()) != 0;
6060
}
6161

62-
public boolean hasPermissions(MemberConstants.Permissions... permissions) throws MissingPermissionsException {
62+
public void hasPermissions(MemberConstants.Permissions... permissions) throws MissingPermissionsException {
6363
for (MemberConstants.Permissions permission : permissions) {
6464
if ((this.permissions & permission.getBit()) == 0) {
6565
throw new MissingPermissionsException();
6666
}
6767
}
68-
return true;
6968
}
7069

71-
public boolean hasAnyPermission(MemberConstants.Permissions... permissions) throws MissingPermissionsException {
70+
public void hasAnyPermission(MemberConstants.Permissions... permissions) throws MissingPermissionsException {
7271
for (MemberConstants.Permissions permission : permissions) {
7372
if ((this.permissions & permission.getBit()) != 0) {
7473
throw new MissingPermissionsException();
7574
}
7675
}
77-
return true;
7876
}
7977
}

0 commit comments

Comments
 (0)