mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-03-24 13:44:33 +00:00
addressed some sonar issues
This commit is contained in:
@@ -21,6 +21,6 @@ public class FeatureListener {
|
||||
|
||||
@EventListener
|
||||
public void handleContextRefreshEvent(ContextRefreshedEvent ctxStartEvt) {
|
||||
|
||||
// Do nothing yet, because of a race condition between features and commands
|
||||
}
|
||||
}
|
||||
|
||||
@@ -177,9 +177,4 @@ public class BotServiceBean implements BotService {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void shutdown() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -154,6 +154,7 @@ public class MessageCacheBean implements MessageCache {
|
||||
reactions.add(cachedReaction);
|
||||
} catch (InterruptedException | ExecutionException e) {
|
||||
log.error("Error while executing future to retrieve reaction.", e);
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
});
|
||||
return reactions;
|
||||
|
||||
@@ -42,7 +42,8 @@ public class ChannelManagementServiceBean implements ChannelManagementService {
|
||||
.build();
|
||||
return repository.save(build);
|
||||
} else {
|
||||
return loadChannel(id).get();
|
||||
Optional<AChannel> channelOptional = loadChannel(id);
|
||||
return channelOptional.orElse(null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user