summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IkiWiki.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index 75b7a7b3e..57e23fda8 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -2493,8 +2493,7 @@ sub match_glob ($$;@) {
# Instead of converting the glob to a regex every time,
# cache the compiled regex to save time.
- if (!exists $glob_cache{$glob}
- or !defined $glob_cache{$glob}) {
+ if (!defined $glob_cache{$glob}) {
my $re = IkiWiki::glob2re($glob);
$glob_cache{$glob} = qr/^$re$/i;
}