mirror of
https://github.com/restic/restic.git
synced 2025-12-14 02:57:04 +00:00
fs: clean up helper functions
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user