Permalink
Browse files

media: Only show deprecation warning when needed

Fixes #4927
  • Loading branch information...
bep committed Jul 10, 2018
1 parent b874a1b commit ac53035030dff7d9e33cd22c33d915f6d1b5ef8b
Showing with 1 addition and 1 deletion.
  1. +1 −1 media/mediaType.go
View
@@ -314,7 +314,7 @@ func DecodeTypes(maps ...map[string]interface{}) (Types, error) {
_, delimiterSet := vm["delimiter"]
_, suffixSet := vm["suffix"]
if mediaType.OldSuffix != "" {
if suffixSet {
suffixIsDeprecated()
}

0 comments on commit ac53035

Please sign in to comment.