mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-12-13 16:07:36 +00:00
manager: Use ternary operator instead of if/else block
Less code is better code.
This commit is contained in:
parent
f01c99c587
commit
ebc5e584bb
1 changed files with 3 additions and 9 deletions
|
@ -219,15 +219,9 @@ on_message (CallsMessageSource *source,
|
|||
message);
|
||||
}
|
||||
|
||||
if (notification) {
|
||||
calls_message_source_emit_message (CALLS_MESSAGE_SOURCE (self),
|
||||
notification,
|
||||
message_type);
|
||||
} else {
|
||||
calls_message_source_emit_message (CALLS_MESSAGE_SOURCE (self),
|
||||
message,
|
||||
message_type);
|
||||
}
|
||||
calls_message_source_emit_message (CALLS_MESSAGE_SOURCE (self),
|
||||
notification ? : message,
|
||||
message_type);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue