Skip to content

Commit

Permalink
Check if configured storages are existing before checking for equality
Browse files Browse the repository at this point in the history
  • Loading branch information
kusnier committed Mar 22, 2017
1 parent c9f9f73 commit 0db4436
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def read_persistent_storage(location)
end

def identical_files(file1, file2)
return File.identical?(Pathname.new(file1).realpath, Pathname.new(file2).realpath)
return (File.exist?(file1) and File.exist?(file2) and File.identical?(Pathname.new(file1).realpath, Pathname.new(file2).realpath))
end

def get_controller_name
Expand Down

0 comments on commit 0db4436

Please sign in to comment.