mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Remove dead code and fix inspection issues
This commit is contained in:
parent
6ffeb7c431
commit
e83f43065e
13 changed files with 10 additions and 82 deletions
|
@ -131,7 +131,7 @@ public class DbusManagerImpl implements Manager {
|
|||
emptyIfNull(about),
|
||||
emptyIfNull(aboutEmoji),
|
||||
avatar == null ? "" : avatar.map(File::getPath).orElse(""),
|
||||
avatar != null && !avatar.isPresent());
|
||||
avatar != null && avatar.isEmpty());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -786,9 +786,8 @@ public class DbusManagerImpl implements Manager {
|
|||
|
||||
private void notifyMessageHandlers(final MessageEnvelope envelope) {
|
||||
synchronized (messageHandlers) {
|
||||
Stream.concat(messageHandlers.stream(), weakHandlers.stream()).forEach(h -> {
|
||||
h.handleMessage(envelope, null);
|
||||
});
|
||||
Stream.concat(messageHandlers.stream(), weakHandlers.stream())
|
||||
.forEach(h -> h.handleMessage(envelope, null));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue