mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 22:15:37 +00:00
Requirenonnull on channel key
This commit is contained in:
1 parent
b6d359775a
commit
ef7547c702
1 file changed
+1
-1
@@ -177,7 +177,7 @@ public final class ConfigChatChannel implements ChatChannel {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public @NonNull Key key() {
|
public @NonNull Key key() {
|
||||||
return this.key;
|
return Objects.requireNonNull(this.key);
|
||||||
}
|
}
|
||||||
|
|
||||||
private @Nullable ConfigChannelMessageService createMessageService() {
|
private @Nullable ConfigChannelMessageService createMessageService() {
|
||||||
|
|||||||
Reference in new issue
Block a user