@@ -112,8 +112,7 @@ pub fn run_command_with_output(
112
112
cwd : Option < & Path > ,
113
113
) -> Result < ( ) , String > {
114
114
let exit_status = exec_command ( input, cwd, None ) ?;
115
- check_exit_status ( input, cwd, exit_status, None , true ) ?;
116
- Ok ( ( ) )
115
+ check_exit_status ( input, cwd, exit_status, None , true )
117
116
}
118
117
119
118
pub fn run_command_with_output_and_env (
@@ -122,8 +121,7 @@ pub fn run_command_with_output_and_env(
122
121
env : Option < & HashMap < String , String > > ,
123
122
) -> Result < ( ) , String > {
124
123
let exit_status = exec_command ( input, cwd, env) ?;
125
- check_exit_status ( input, cwd, exit_status, None , true ) ?;
126
- Ok ( ( ) )
124
+ check_exit_status ( input, cwd, exit_status, None , true )
127
125
}
128
126
129
127
#[ cfg( not( unix) ) ]
@@ -133,8 +131,7 @@ pub fn run_command_with_output_and_env_no_err(
133
131
env : Option < & HashMap < String , String > > ,
134
132
) -> Result < ( ) , String > {
135
133
let exit_status = exec_command ( input, cwd, env) ?;
136
- check_exit_status ( input, cwd, exit_status, None , false ) ?;
137
- Ok ( ( ) )
134
+ check_exit_status ( input, cwd, exit_status, None , false )
138
135
}
139
136
140
137
pub fn cargo_install ( to_install : & str ) -> Result < ( ) , String > {
0 commit comments