2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-22 02:48:55 +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:
greatroar 2020-09-17 10:22:15 +02:00
parent 95ebba85ff
commit 0d65b78168

View File

@ -9,5 +9,5 @@ func IsRegularFile(fi os.FileInfo) bool {
return false
}
return fi.Mode()&(os.ModeType|os.ModeCharDevice) == 0
return fi.Mode()&os.ModeType == 0
}