rust/chg/src/uihandler.rs
changeset 44756 27fe8cc1338f
parent 44755 4b0185841058
child 45620 426294d06ddc
--- a/rust/chg/src/uihandler.rs	Sat Apr 11 02:51:03 2020 +0900
+++ b/rust/chg/src/uihandler.rs	Sat Apr 11 17:43:29 2020 +0900
@@ -67,16 +67,11 @@
 
     async fn run_system(&mut self, spec: &CommandSpec) -> io::Result<i32> {
         let status = new_shell_command(&spec).spawn()?.await?;
-        // TODO: unindent
-        {
-            {
-                let code = status
-                    .code()
-                    .or_else(|| status.signal().map(|n| -n))
-                    .expect("either exit code or signal should be set");
-                Ok(code)
-            }
-        }
+        let code = status
+            .code()
+            .or_else(|| status.signal().map(|n| -n))
+            .expect("either exit code or signal should be set");
+        Ok(code)
     }
 }