mirror of
https://github.com/restic/restic.git
synced 2025-12-23 05:46:16 +00:00
Simplify os.ModeType|os.ModeCharDevice => os.ModeType
Since Go 1.12, ModeCharDevice is included in ModeType: golang/go@a2a3dd00c9
This commit is contained in:
@@ -9,5 +9,5 @@ func IsRegularFile(fi os.FileInfo) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
return fi.Mode()&(os.ModeType|os.ModeCharDevice) == 0
|
return fi.Mode()&os.ModeType == 0
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user