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

+2 -2
View File
@@ -177,11 +177,11 @@ func setDefaults() {
}
func setUserUmask() {
unix.Umask(0077)
unix.Umask(0o077)
}
func isExecutable(f os.FileInfo) bool {
return f.Mode()&0111 != 0
return f.Mode()&0o111 != 0
}
func isHidden(f os.FileInfo, path string, hiddenfiles []string) bool {