mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
Use explicit 'next' returning
This commit is contained in:
parent
5a528229a0
commit
529bfea75c
1 changed files with 2 additions and 7 deletions
|
@ -140,16 +140,11 @@ class LogStash::Runner
|
|||
# Add the 'spec' dir to the load path so specs can run
|
||||
specpath = File.join(jar_root, "spec")
|
||||
$: << specpath unless $:.include?(specpath)
|
||||
newpath
|
||||
else
|
||||
arg
|
||||
next newpath
|
||||
end
|
||||
else
|
||||
arg
|
||||
end
|
||||
else
|
||||
arg
|
||||
end
|
||||
next arg
|
||||
end # args.collect
|
||||
|
||||
# Hack up a runner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue