Skip to content

Commit 7efd492

Browse files
committed
Merge pull request #405 from Fudoshiki/patch-1
Ruby way assignment in conditional
2 parents f704e2f + 223f5ea commit 7efd492

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/spring/client/binstub.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Binstub < Command
3636
require "rubygems"
3737
require "bundler"
3838
39-
if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m)
39+
if (match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m))
4040
Gem.paths = { "GEM_PATH" => [Bundler.bundle_path.to_s, *Gem.path].uniq }
4141
gem "spring", match[1]
4242
require "spring/binstub"

0 commit comments

Comments
 (0)