From 4bc224dd3cfa80db0bcd34d8601b3e183c34ab0f Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Thu, 26 Nov 2009 12:50:09 +0200 Subject: [PATCH] Ticket #1845: Code cleanup before 4.7.0 release. Little optimization for src/filehighlight/get-color.c:c_fhl_is_stale_link() function. Signed-off-by: Slava Zanko --- src/filehighlight/get-color.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/filehighlight/get-color.c b/src/filehighlight/get-color.c index a87ed6304..a56811d0a 100644 --- a/src/filehighlight/get-color.c +++ b/src/filehighlight/get-color.c @@ -88,9 +88,7 @@ mc_fhl_is_link_to_dir (file_entry * fe) inline static gboolean mc_fhl_is_stale_link (file_entry * fe) { - gboolean is_link = mc_fhl_is_link (fe); - - return (!is_link && !mc_fhl_is_file (fe)) || (is_link && (fe->f.stale_link)); + return mc_fhl_is_link (fe) ? fe->f.stale_link : !mc_fhl_is_file (fe); } inline static gboolean