8000 Fix style for rubocop · Arduino-CI/arduino_ci@c53d30e · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

8000
Appearance settings

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

Lines changed: 5 additions & 5 deletions
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)
0