summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-file.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-12-15 13:17:59 +0100
committerZenWalker <[email protected]>2019-12-15 15:08:42 +0100
commit10f7f37ac07aaa563485237e0c4ee38234ff9788 (patch)
treec3d604c5ccdcdabe41a64fb1709ef5eb1e350f64 /libcaja-private/caja-file.c
parent452d0558555b468015b561ad6c41f5f417e63ec7 (diff)
downloadcaja-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.c7
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);