From 10f7f37ac07aaa563485237e0c4ee38234ff9788 Mon Sep 17 00:00:00 2001 From: rbuj Date: Sun, 15 Dec 2019 13:17:59 +0100 Subject: libcaja-private/caja-file: redundant condition '!A || (A && B)' is equivalent to '!A || B' --- libcaja-private/caja-file.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libcaja-private') 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); -- cgit v1.2.1