1
0
Fork 0
mirror of https://github.com/gohugoio/hugo.git synced 2025-05-01 04:17:35 +00:00

media: Only show deprecation warning when needed

Fixes 
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()
}