Skip to content

Commit

Permalink
Merge 4a950f3 into 0c95f63
Browse files Browse the repository at this point in the history
  • Loading branch information
flyerhzm committed Jan 17, 2021
2 parents 0c95f63 + 4a950f3 commit f189039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/synvert/core/rewriter/gem_spec.rb
Expand Up @@ -27,7 +27,7 @@ def initialize(name, comparator)
# @raise [Synvert::Core::GemfileLockNotFound] raise if Gemfile.lock does not exist.
def match?
gemfile_lock_path = File.join(Configuration.instance.get(:path), 'Gemfile.lock')
if File.exists? gemfile_lock_path
if File.exist? gemfile_lock_path
parser = Bundler::LockfileParser.new(File.read(gemfile_lock_path))
if spec = parser.specs.find { |spec| spec.name == @name }
Gem::Version.new(spec.version).send(OPERATORS[@operator], @version)
Expand Down

0 comments on commit f189039

Please sign in to comment.