lib/dyndnsd/database.rb in dyndnsd-2.1.0 vs lib/dyndnsd/database.rb in dyndnsd-2.1.1

- old
+ new

@@ -13,10 +13,10 @@ end # @return [void] def load if File.file?(@db_file) - @db = JSON.parse(File.open(@db_file, 'r', &:read)) + @db = JSON.parse(File.read(@db_file, mode: 'r')) else @db = {} end @db_hash = @db.hash end