Skip to content

Commit

Permalink
media: Only show deprecation warning when needed
Browse files Browse the repository at this point in the history
Fixes #4927
  • Loading branch information
bep committed Jul 10, 2018
1 parent b874a1b commit ac53035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion media/mediaType.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ func DecodeTypes(maps ...map[string]interface{}) (Types, error) {
_, delimiterSet := vm["delimiter"]
_, suffixSet := vm["suffix"]

if mediaType.OldSuffix != "" {
if suffixSet {
suffixIsDeprecated()
}

Expand Down

0 comments on commit ac53035

Please sign in to comment.