aboutsummaryrefslogtreecommitdiffhomepage
path: root/media
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2018-07-10 23:21:48 +0200
committerBjørn Erik Pedersen <[email protected]>2018-07-10 23:21:48 +0200
commitac53035030dff7d9e33cd22c33d915f6d1b5ef8b (patch)
treee7167f6a9a705c635daf96c6c656e651a021496c /media
parentb874a1ba7ab8394dc741c8c70303a30a35b63e43 (diff)
downloadhugo-ac53035030dff7d9e33cd22c33d915f6d1b5ef8b.tar.gz
hugo-ac53035030dff7d9e33cd22c33d915f6d1b5ef8b.zip
media: Only show deprecation warning when needed
Fixes #4927
Diffstat (limited to 'media')
-rw-r--r--media/mediaType.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/mediaType.go b/media/mediaType.go
index f26209ea1..787579956 100644
--- a/media/mediaType.go
+++ b/media/mediaType.go
@@ -314,7 +314,7 @@ func DecodeTypes(maps ...map[string]interface{}) (Types, error) {
_, delimiterSet := vm["delimiter"]
_, suffixSet := vm["suffix"]
- if mediaType.OldSuffix != "" {
+ if suffixSet {
suffixIsDeprecated()
}