check for true before empty string

bug/bundler_fix
Brent Cook 2016-04-01 21:30:11 -05:00
parent 2a9f813bcd
commit 3d995546d9
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class Console::CommandDispatcher::Powershell
result = client.powershell.import_file(opts)
if result.nil? || result == false
print_error("File failed to load.")
elsif result.empty?
elsif result == true || result.empty?
print_good("File successfully imported. No result was returned.")
else
print_good("File successfully imported. Result:\n#{result}")