rust/rhg/src/commands/status.rs
changeset 49952 70b4c7af9cdb
parent 49914 58074252db3c
child 49981 364e78389653
--- a/rust/rhg/src/commands/status.rs	Thu Jan 19 11:12:20 2023 -0500
+++ b/rust/rhg/src/commands/status.rs	Wed Jan 25 18:44:09 2023 +0100
@@ -578,12 +578,10 @@
 
     let entry_flags = if check_exec {
         entry.flags
+    } else if entry.flags == Some(b'x') {
+        None
     } else {
-        if entry.flags == Some(b'x') {
-            None
-        } else {
-            entry.flags
-        }
+        entry.flags
     };
 
     if entry_flags != fs_flags {