Fix Ugoiras when image cropping is disabled

since file is nil and has no #close! when Danbooru.config.enable_image_cropping is false
This commit is contained in:
lllusion3469
2019-08-17 19:52:23 -05:00
committed by evazion
parent 51ca31ef8d
commit b15fd6d017
+1 -1
View File
@@ -73,7 +73,7 @@ class PixivUgoiraConverter
DanbooruImageResizer.crop(file, Danbooru.config.small_image_width, Danbooru.config.small_image_width, 85)
ensure
file.close!
file&.close!
end
def self.generate_preview(ugoira_file)