Skip to content

Commit

Permalink
Merge pull request #19 from RemedyIT/master-cf-autofix
Browse files Browse the repository at this point in the history
Use File.exist instead of File.exists
  • Loading branch information
jwillemsen committed Dec 2, 2019
2 parents d138fc7 + 92693c5 commit 0a758be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ridl/genfile.rb
Expand Up @@ -109,7 +109,7 @@ def initialize(path, opts = {})
:output_file => nil,
:create_missing_dir => false
}.merge(opts)
if @options[:regenerate] && File.exists?(@fullpath)
if @options[:regenerate] && File.exist?(@fullpath)
parse_regeneration_content
else
@content = Content.new
Expand Down Expand Up @@ -159,7 +159,7 @@ def save
fgen = @fout
@fout = nil
fgen.close(false) # close but do NOT unlink
if File.exists?(@fullpath)
if File.exist?(@fullpath)
# create temporary backup
ftmp = Tempfile.new(@name)
ftmp_name = ftmp.path.dup
Expand Down

0 comments on commit 0a758be

Please sign in to comment.