Skip to content

Commit f2b1c96

Browse files
authored
Cleanup binstub for rubocop
1 parent f350d8a commit f2b1c96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/spring/client/binstub.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ class Binstub < Command
3434
require 'bundler'
3535
3636
lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read)
37-
if spring = lockfile.specs.detect { |spec| spec.name == "spring" }
37+
spring = lockfile.specs.detect { |spec| spec.name == "spring" }
38+
if spring
3839
Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
3940
gem 'spring', spring.version
4041
require 'spring/binstub'

0 commit comments

Comments
 (0)