gofumpt lint and misc cleanup (#1682)

* gofumpt lint and misc cleanup

* Reorder fileInfo dircounts code to be clearer
This commit is contained in:
David Pedersen authored and GitHub committed 2024-04-20 21:42:28 +02:00
1 parent 6cabb0e8e4
commit a018257d50
10 files changed
+42 -45

No files matched your search

+1 -1
View File
@@ -330,7 +330,7 @@ func TestGetFileExtension(t *testing.T) {
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {
if got := getFileExtension(fakeFileInfo{test.fileName, test.isDir}); got != test.expectedExtension {
t.Errorf("at input %q expected %q but got %q", test.fileName, test.expectedExtension, got)
t.Errorf("at input '%s' expected '%s' but got '%s'", test.fileName, test.expectedExtension, got)
}
})
}