From 98932f51f40b3894baadca921a9d61438687a180 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sat, 4 Dec 2021 07:47:20 +0300 Subject: [PATCH] lib/filehighlight/get-color.c: remove extra parenthesis. Signed-off-by: Andrew Borodin --- lib/filehighlight/get-color.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/filehighlight/get-color.c b/lib/filehighlight/get-color.c index e91a0243b..fb41fb23d 100644 --- a/lib/filehighlight/get-color.c +++ b/lib/filehighlight/get-color.c @@ -88,7 +88,7 @@ mc_fhl_is_hlink (const file_entry_t * fe) inline static gboolean mc_fhl_is_link_to_dir (const file_entry_t * fe) { - return mc_fhl_is_link (fe) && (fe->f.link_to_dir); + return mc_fhl_is_link (fe) && fe->f.link_to_dir; } inline static gboolean @@ -167,7 +167,7 @@ mc_fhl_get_color_filetype (const mc_fhl_filter_t * mc_filter, const mc_fhl_t * f my_color = TRUE; break; case MC_FLHGH_FTYPE_T_FILE_EXE: - if ((mc_fhl_is_file (fe)) && (mc_fhl_is_file_exec (fe))) + if (mc_fhl_is_file (fe) && mc_fhl_is_file_exec (fe)) my_color = TRUE; break; case MC_FLHGH_FTYPE_T_DIR: @@ -179,7 +179,7 @@ mc_fhl_get_color_filetype (const mc_fhl_filter_t * mc_filter, const mc_fhl_t * f my_color = TRUE; break; case MC_FLHGH_FTYPE_T_LINK: - if ((mc_fhl_is_link (fe)) || (mc_fhl_is_hlink (fe))) + if (mc_fhl_is_link (fe) || mc_fhl_is_hlink (fe)) my_color = TRUE; break; case MC_FLHGH_FTYPE_T_HARDLINK: @@ -195,7 +195,7 @@ mc_fhl_get_color_filetype (const mc_fhl_filter_t * mc_filter, const mc_fhl_t * f my_color = TRUE; break; case MC_FLHGH_FTYPE_T_DEVICE: - if ((mc_fhl_is_device_char (fe)) || (mc_fhl_is_device_block (fe))) + if (mc_fhl_is_device_char (fe) || mc_fhl_is_device_block (fe)) my_color = TRUE; break; case MC_FLHGH_FTYPE_T_DEVICE_BLOCK: @@ -226,7 +226,7 @@ mc_fhl_get_color_filetype (const mc_fhl_filter_t * mc_filter, const mc_fhl_t * f break; } - return (my_color) ? mc_filter->color_pair_index : -1; + return my_color ? mc_filter->color_pair_index : -1; } /* --------------------------------------------------------------------------------------------- */