lib/bundler/definition.rb in bundler-2.5.19 vs lib/bundler/definition.rb in bundler-2.5.20

- old
+ new

@@ -315,10 +315,10 @@ dependencies.map(&:groups).flatten.uniq end def lock(file_or_preserve_unknown_sections = false, preserve_unknown_sections_or_unused = false) if [true, false, nil].include?(file_or_preserve_unknown_sections) - target_lockfile = lockfile || Bundler.default_lockfile + target_lockfile = lockfile preserve_unknown_sections = file_or_preserve_unknown_sections else target_lockfile = file_or_preserve_unknown_sections preserve_unknown_sections = preserve_unknown_sections_or_unused