Skip to content

Commit

Permalink
Fix returning nil if image type not gif for animated
Browse files Browse the repository at this point in the history
  • Loading branch information
sdsykes committed Jun 14, 2020
1 parent 967737b commit b58af86
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/fastimage.rb
Expand Up @@ -427,9 +427,7 @@ def parse_size

def parse_animated
@type = parse_type unless @type
return nil if @type == nil

@type == :gif ? send("parse_animated_for_#{@type}") : false
@type == :gif ? send("parse_animated_for_#{@type}") : nil
end

def fetch_using_base64(uri)
Expand Down

0 comments on commit b58af86

Please sign in to comment.