mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
(rubocop) Fix Style/BlockDelimiters
This commit is contained in:
parent
692577a486
commit
613121f34d
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue