diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-05-08 12:49:17 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-05-08 12:49:17 +0200 |
commit | 103684b15e068f17af1272c55e56f36e2f68847f (patch) | |
tree | b323f8c5918d5cde3d103dfa12ab9f052d2a3c5d /src/gui | |
parent | 7546ee08ca903ce67002416076b3027d487cf171 (diff) | |
download | weechat-103684b15e068f17af1272c55e56f36e2f68847f.zip |
core: merge conditions in function gui_buffer_set_type
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/gui-buffer.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c index 2cd1abb7c..1eaf9f809 100644 --- a/src/gui/gui-buffer.c +++ b/src/gui/gui-buffer.c @@ -1689,11 +1689,7 @@ gui_buffer_set_short_name (struct t_gui_buffer *buffer, const char *short_name) void gui_buffer_set_type (struct t_gui_buffer *buffer, enum t_gui_buffer_type type) { - if (!buffer) - return; - - /* same type? */ - if (buffer->type == type) + if (!buffer || (buffer->type == type)) return; gui_line_free_all (buffer); |