Skip to content

Commit

Permalink
Auto corrected by following Lint Ruby Lint/DeprecatedClassMethods
Browse files Browse the repository at this point in the history
  • Loading branch information
Awesome Code committed Jan 17, 2021
1 parent 0c95f63 commit 4a950f3
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 4a950f3

Please sign in to comment.