diff options
author | Andre Arko <andre@arko.net> | 2015-05-17 20:46:02 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2015-05-17 20:46:02 -0700 |
commit | d46b7ab4f4458a8f3ff847161a1cef1080adfe63 (patch) | |
tree | e8e178b6b69ead2fdd44850af6ddb4db6c01329a | |
parent | 0509b34de790215fe5da9975ddcee140483208ed (diff) | |
download | bundler-d46b7ab4f4458a8f3ff847161a1cef1080adfe63.tar.gz |
fix warning by initing @locked_bundler_version
-rw-r--r-- | lib/bundler/definition.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index 4df617660e..ec779428b0 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -50,9 +50,11 @@ module Bundler @dependencies, @sources, @unlock, @optional_groups = dependencies, sources, unlock, optional_groups @remote = false @specs = nil - @lockfile_contents = "" @ruby_version = ruby_version + @lockfile_contents = "" + @locked_bundler_version = nil + if lockfile && File.exist?(lockfile) @lockfile_contents = Bundler.read_file(lockfile) locked = LockfileParser.new(@lockfile_contents) |