check for true before empty string
parent
2a9f813bcd
commit
3d995546d9
|
@ -107,7 +107,7 @@ class Console::CommandDispatcher::Powershell
|
||||||
result = client.powershell.import_file(opts)
|
result = client.powershell.import_file(opts)
|
||||||
if result.nil? || result == false
|
if result.nil? || result == false
|
||||||
print_error("File failed to load.")
|
print_error("File failed to load.")
|
||||||
elsif result.empty?
|
elsif result == true || result.empty?
|
||||||
print_good("File successfully imported. No result was returned.")
|
print_good("File successfully imported. No result was returned.")
|
||||||
else
|
else
|
||||||
print_good("File successfully imported. Result:\n#{result}")
|
print_good("File successfully imported. Result:\n#{result}")
|
||||||
|
|
Loading…
Reference in New Issue