diff --git a/lib/discourse_ip_info.rb b/lib/discourse_ip_info.rb index 3fb1d63a9a4..df4f6dd392a 100644 --- a/lib/discourse_ip_info.rb +++ b/lib/discourse_ip_info.rb @@ -38,7 +38,7 @@ class DiscourseIpInfo FileUtils.mv(path, mmdb_path(name)) ensure - gz_file.close! + gz_file&.close! end def mmdb_load(filepath)