media: Only show deprecation warning when needed

Fixes #4927
This commit is contained in:
Bjørn Erik Pedersen 2018-07-10 23:21:48 +02:00
parent b874a1ba7a
commit ac53035030
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -314,7 +314,7 @@ func DecodeTypes(maps ...map[string]interface{}) (Types, error) {
_, delimiterSet := vm["delimiter"]
_, suffixSet := vm["suffix"]
if mediaType.OldSuffix != "" {
if suffixSet {
suffixIsDeprecated()
}