mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 11:38:02 +00:00
Run a more strict formatter over the code (#11312)
* Update tooling * Run gofumpt * go mod vendor
This commit is contained in:
@@ -42,7 +42,7 @@ func TestInternalHelperFilePerms(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if fi.Mode().Perm()&004 != 004 {
|
||||
if fi.Mode().Perm()&0o04 != 0o04 {
|
||||
t.Fatalf("expected world-readable/writable permission bits, got: %o", fi.Mode().Perm())
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ func TestInternalHelperFilePerms(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if fi.Mode().Perm()&004 != 0 {
|
||||
if fi.Mode().Perm()&0o04 != 0 {
|
||||
t.Fatalf("expected no world-readable/writable permission bits, got: %o", fi.Mode().Perm())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user