Skip to content

Commit a36cf16

Browse files
quirkeydefunkt
authored andcommitted
Fix no method error when theres no config
1 parent 9f2f5c1 commit a36cf16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/resque-web

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require 'resque/server'
1212

1313
Vegas::Runner.new(Resque::Server, 'resque-web', {
1414
:before_run => lambda {|v|
15-
path = (ENV['RESQUECONFIG'] || v.args.first).strip
16-
load path if path
15+
path = (ENV['RESQUECONFIG'] || v.args.first)
16+
load path.to_s.strip if path
1717
}
1818
})

0 commit comments

Comments
 (0)