summaryrefslogtreecommitdiffstats
path: root/hugofs/glob
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-12-02 13:23:25 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-12-03 13:12:58 +0100
commitd90e37e0c6e812f9913bf256c9c81aa05b7a08aa (patch)
tree7b1b14464eefec1188ca2eed53c64e4823453cc9 /hugofs/glob
parent32471b57bde51c55a15dbf1db75d6e5f7232c347 (diff)
all: Format code with gofumpt
See https://github.com/mvdan/gofumpt
Diffstat (limited to 'hugofs/glob')
-rw-r--r--hugofs/glob/glob.go2
-rw-r--r--hugofs/glob/glob_test.go4
2 files changed, 0 insertions, 6 deletions
diff --git a/hugofs/glob/glob.go b/hugofs/glob/glob.go
index 88485e1f0..5d2d3d5e5 100644
--- a/hugofs/glob/glob.go
+++ b/hugofs/glob/glob.go
@@ -53,7 +53,6 @@ func GetGlob(pattern string) (glob.Glob, error) {
globMu.Unlock()
return eg.glob, eg.err
-
}
func NormalizePath(p string) string {
@@ -98,5 +97,4 @@ func HasGlobChar(s string) bool {
}
}
return false
-
}
diff --git a/hugofs/glob/glob_test.go b/hugofs/glob/glob_test.go
index 5a6ef5b7e..cd64ba112 100644
--- a/hugofs/glob/glob_test.go
+++ b/hugofs/glob/glob_test.go
@@ -32,7 +32,6 @@ func TestResolveRootDir(t *testing.T) {
{"dat?a/foo.json", ""},
{"a/b[a-c]/foo.json", "a"},
} {
-
c.Assert(ResolveRootDir(test.input), qt.Equals, test.expected)
}
}
@@ -46,7 +45,6 @@ func TestFilterGlobParts(t *testing.T) {
}{
{[]string{"a", "*", "c"}, []string{"a", "c"}},
} {
-
c.Assert(FilterGlobParts(test.input), qt.DeepEquals, test.expected)
}
}
@@ -63,7 +61,6 @@ func TestNormalizePath(t *testing.T) {
{filepath.FromSlash("./FOO.json"), "foo.json"},
{"//", ""},
} {
-
c.Assert(NormalizePath(test.input), qt.Equals, test.expected)
}
}
@@ -82,5 +79,4 @@ func BenchmarkGetGlob(b *testing.B) {
b.Fatal(err)
}
}
-
}