(rubocop) Fix Style/BlockDelimiters

This commit is contained in:
Tim Sharpe 2019-02-03 11:33:02 +11:00
parent 692577a486
commit 613121f34d

View file

@ -7,10 +7,10 @@ class Ssh
exts = ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : [''] exts = ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : ['']
ENV['PATH'].split(File::PATH_SEPARATOR).each do |path| ENV['PATH'].split(File::PATH_SEPARATOR).each do |path|
exts.each { |ext| exts.each do |ext|
exe = File.join(path, "#{cmd}#{ext}") exe = File.join(path, "#{cmd}#{ext}")
return exe if File.executable?(exe) && !File.directory?(exe) return exe if File.executable?(exe) && !File.directory?(exe)
} end
end end
nil nil
end end