diff options
author | rbuj <[email protected]> | 2019-12-15 13:17:59 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-07-20 21:40:42 +0200 |
commit | 452bc7cfa0b98e7e415767432b1c1dddda0bfaee (patch) | |
tree | 2e6f97bd0e05d15f8497c9e15c851db3b225666c /libcaja-private | |
parent | 2f961398943a3ec4a26933a0b65799d5d9233226 (diff) | |
download | caja-452bc7cfa0b98e7e415767432b1c1dddda0bfaee.tar.bz2 caja-452bc7cfa0b98e7e415767432b1c1dddda0bfaee.tar.xz |
libcaja-private/caja-file: redundant condition
'!A || (A && B)' is equivalent to '!A || B'
Diffstat (limited to 'libcaja-private')
-rw-r--r-- | libcaja-private/caja-file.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libcaja-private/caja-file.c b/libcaja-private/caja-file.c index 71b21216..531257e2 100644 --- a/libcaja-private/caja-file.c +++ b/libcaja-private/caja-file.c @@ -4612,11 +4612,10 @@ caja_file_get_icon (CajaFile *file, /* Render frames only for thumbnails of non-image files and for images with no alpha channel. */ gboolean is_image = file->details->mime_type && - (strncmp(eel_ref_str_peek (file->details->mime_type), "image/", 6) == 0); - if (!is_image || - is_image && !gdk_pixbuf_get_has_alpha (raw_pixbuf)) { - caja_ui_frame_image (&scaled_pixbuf); - } + (strncmp(eel_ref_str_peek (file->details->mime_type), "image/", 6) == 0); + if (!is_image || !gdk_pixbuf_get_has_alpha (raw_pixbuf)) { + caja_ui_frame_image (&scaled_pixbuf); + } g_object_unref (raw_pixbuf); |