File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -95,10 +95,10 @@ fn merge_env(base: &mut serde_json::Value) {
9595 if let Ok ( v) = std:: env:: var ( "PLANE_CLI_WORKSPACE" ) {
9696 map. insert ( "workspace" . to_string ( ) , serde_json:: Value :: String ( v) ) ;
9797 }
98- if let Ok ( v) = std:: env:: var ( "PLANE_CLI_TIMEOUT" ) {
99- if let Ok ( n) = v. parse :: < u64 > ( ) {
100- map . insert ( "timeout" . to_string ( ) , serde_json :: json! ( n ) ) ;
101- }
98+ if let Ok ( v) = std:: env:: var ( "PLANE_CLI_TIMEOUT" )
99+ && let Ok ( n) = v. parse :: < u64 > ( )
100+ {
101+ map . insert ( "timeout" . to_string ( ) , serde_json :: json! ( n ) ) ;
102102 }
103103}
104104
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use wiremock::matchers::{method, path};
44use wiremock:: { Mock , MockServer , ResponseTemplate } ;
55
66fn plane_cmd ( ) -> assert_cmd:: Command {
7- cargo_bin_cmd ! ( "plane-cli" ) . into ( )
7+ cargo_bin_cmd ! ( "plane-cli" )
88}
99
1010#[ test]
You can’t perform that action at this time.
0 commit comments