1
0
Fork 0
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:
Evangelos Ribeiro Tzaras 2022-01-13 16:03:38 +01:00
parent f01c99c587
commit ebc5e584bb

View file

@ -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);
}
} }