diff options
author | rbuj <[email protected]> | 2019-12-15 13:17:59 +0100 |
---|---|---|
committer | ZenWalker <[email protected]> | 2019-12-15 15:08:42 +0100 |
commit | 10f7f37ac07aaa563485237e0c4ee38234ff9788 (patch) | |
tree | c3d604c5ccdcdabe41a64fb1709ef5eb1e350f64 /libcaja-private/caja-file.c | |
parent | 452d0558555b468015b561ad6c41f5f417e63ec7 (diff) | |
download | caja-10f7f37ac07aaa563485237e0c4ee38234ff9788.tar.bz2 caja-10f7f37ac07aaa563485237e0c4ee38234ff9788.tar.xz |
libcaja-private/caja-file: redundant condition
'!A || (A && B)' is equivalent to '!A || B'
Diffstat (limited to 'libcaja-private/caja-file.c')
-rw-r--r-- | libcaja-private/caja-file.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libcaja-private/caja-file.c b/libcaja-private/caja-file.c index 1bb34b16..1b3bf220 100644 --- a/libcaja-private/caja-file.c +++ b/libcaja-private/caja-file.c @@ -4611,10 +4611,9 @@ caja_file_get_icon (CajaFile *file, and for images with no alpha channel. */ gboolean is_image = file->details->mime_type && (strncmp (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); - } + if (!is_image || !gdk_pixbuf_get_has_alpha (raw_pixbuf)) { + caja_ui_frame_image (&scaled_pixbuf); + } g_object_unref (raw_pixbuf); |