mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-11-19 01:51:46 +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);
|
message);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (notification) {
|
|
||||||
calls_message_source_emit_message (CALLS_MESSAGE_SOURCE (self),
|
calls_message_source_emit_message (CALLS_MESSAGE_SOURCE (self),
|
||||||
notification,
|
notification ? : message,
|
||||||
message_type);
|
message_type);
|
||||||
} else {
|
|
||||||
calls_message_source_emit_message (CALLS_MESSAGE_SOURCE (self),
|
|
||||||
message,
|
|
||||||
message_type);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue