Simplify a boolean conditional
This commit is contained in:
parent
7d2804549e
commit
1f399f5904
1 changed files with 1 additions and 1 deletions
|
@ -842,7 +842,7 @@ public class MessagingController implements Runnable
|
|||
List<Message> messages = new ArrayList<Message>();
|
||||
|
||||
messages.add(message);
|
||||
stats.unreadMessageCount += (message.isSet(Flag.SEEN) == false) ? 1 : 0;
|
||||
stats.unreadMessageCount += (!message.isSet(Flag.SEEN)) ? 1 : 0;
|
||||
stats.flaggedMessageCount += (message.isSet(Flag.FLAGGED)) ? 1 : 0;
|
||||
if (listener != null)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue