diff options
Diffstat (limited to 'doc')
-rwxr-xr-x | doc/scripts/create-mime.conf.pl | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/doc/scripts/create-mime.conf.pl b/doc/scripts/create-mime.conf.pl index fb6b3747..3cb421f6 100755 --- a/doc/scripts/create-mime.conf.pl +++ b/doc/scripts/create-mime.conf.pl @@ -120,15 +120,13 @@ sub add { } # non-vnd.* subtype wins over vnd.* subtype - if ($type eq $have_type) { - my $have_vnd = ($have_subtype =~ /^vnd\./); - if (($subtype =~ /^vnd\./) ^ $have_vnd) { - if ($have_vnd) { - return set @_; # overwrite - } - else { - return; # ignore - } + my $have_vnd = ($have_subtype =~ /^vnd\./); + if (($subtype =~ /^vnd\./) ^ $have_vnd) { + if ($have_vnd) { + return set @_; # overwrite + } + else { + return; # ignore } } |