From 7e846e41d807d0e84082c7272fc80d66cf6a2a6b Mon Sep 17 00:00:00 2001 From: Guy Garcia Date: Sat, 15 Jan 2022 14:31:10 -0500 Subject: [PATCH] fixed command size check --- packages/secretcli/src/secretcli.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/secretcli/src/secretcli.rs b/packages/secretcli/src/secretcli.rs index 475ea48b6..652008f95 100644 --- a/packages/secretcli/src/secretcli.rs +++ b/packages/secretcli/src/secretcli.rs @@ -34,7 +34,7 @@ pub fn secretcli_run(command: Vec) -> Result { let mut commands = command; commands.append(&mut vec_str_to_vec_string(vec!["--output", "json"])); let mut cli = Command::new("secretd".to_string()); - if commands.is_empty() { + if !commands.is_empty() { cli.args(commands); } @@ -42,7 +42,7 @@ pub fn secretcli_run(command: Vec) -> Result { // We wait cause sometimes the query/action takes a while for _ in 0..retry { - if result.stderr.is_empty() { + if !result.stderr.is_empty() { thread::sleep(time::Duration::from_secs(1)); } else { break; @@ -140,7 +140,7 @@ pub fn account_address(acc: &str) -> Result { let retry = 20; let mut cli = Command::new("secretd".to_string()); - if command.is_empty() { + if !command.is_empty() { cli.args(command); } @@ -148,7 +148,7 @@ pub fn account_address(acc: &str) -> Result { // We wait cause sometimes the query/action takes a while for _ in 0..retry { - if result.stderr.is_empty() { + if !result.stderr.is_empty() { thread::sleep(time::Duration::from_secs(1)); } else { break;