fs: clean up helper functions

This commit is contained in:
Michael Eischer
2024-07-21 14:40:33 +02:00
parent fc549c9462
commit 0ddb4441d7
5 changed files with 5 additions and 38 deletions

View File

@@ -122,7 +122,7 @@ func TestTestCreateFiles(t *testing.T) {
switch node := item.(type) {
case TestFile:
if !fs.IsRegularFile(fi) {
if !fi.Mode().IsRegular() {
t.Errorf("is not regular file: %v", name)
continue
}