diff options
Diffstat (limited to 'hugofs/glob/glob.go')
-rw-r--r-- | hugofs/glob/glob.go | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/hugofs/glob/glob.go b/hugofs/glob/glob.go index dc9b4fb5b..42aa1fa3b 100644 --- a/hugofs/glob/glob.go +++ b/hugofs/glob/glob.go @@ -69,7 +69,8 @@ func (gc *globCache) GetGlob(pattern string) (glob.Glob, error) { eg = globErr{ globDecorator{ g: g, - isWindows: gc.isWindows}, + isWindows: gc.isWindows, + }, err, } @@ -121,15 +122,6 @@ func (g globDecorator) Match(s string) bool { return g.g.Match(s) } -type globDecoratorDouble struct { - lowerCase glob.Glob - originalCase glob.Glob -} - -func (g globDecoratorDouble) Match(s string) bool { - return g.lowerCase.Match(s) || g.originalCase.Match(s) -} - func GetGlob(pattern string) (glob.Glob, error) { return defaultGlobCache.GetGlob(pattern) } |