refactor(type): simplify image type matching

This commit is contained in:
Tomas Aparicio 2015-10-04 10:05:05 +01:00
parent d06464fca2
commit 9342d6482a
3 changed files with 23 additions and 29 deletions

View file

@ -68,7 +68,7 @@ func TestIsTypeNameSupported(t *testing.T) {
name string
expected bool
}{
{"jpg", true},
{"jpeg", true},
{"png", true},
{"webp", true},
{"gif", false},