Skip to content

Commit c53d30e

Browse files
committed
Fix style for rubocop
1 parent 00f10a0 commit c53d30e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/arduino_ci/arduino_installation.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ def autolocate_osx
7878
# don't want to see is a java error.
7979
args = launcher + ["--bogus-option"]
8080
result = Host.run_and_capture(*args)
81-
if result[:err].include? "Error: unknown option: --bogus-option"
82-
ret.base_cmd = launcher
83-
ret.binary_path = Pathname.new(osx_root)
84-
return ret
85-
end
81+
next unless result[:err].include? "Error: unknown option: --bogus-option"
82+
83+
ret.base_cmd = launcher
84+
ret.binary_path = Pathname.new(osx_root)
85+
return ret
8686
end
8787
nil
8888
end

0 commit comments

Comments
 (0)