From 3cd7df7b136dfe2cd129b117c2e7651afad15527 Mon Sep 17 00:00:00 2001 From: bstrausser Date: Wed, 19 Jun 2024 12:00:54 +0200 Subject: [PATCH] bib: change octal literal prefix Use `0o` instead of just `0` for better readability. --- bib/internal/setup/setup_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bib/internal/setup/setup_test.go b/bib/internal/setup/setup_test.go index 375cf78..25b91c9 100644 --- a/bib/internal/setup/setup_test.go +++ b/bib/internal/setup/setup_test.go @@ -32,7 +32,7 @@ func TestValidateCanRunTargetArchUnsupportedCanary(t *testing.T) { func makeFakeCanary(t *testing.T, content string) { tmpdir := t.TempDir() t.Setenv("PATH", os.Getenv("PATH")+":"+tmpdir) - err := os.WriteFile(filepath.Join(tmpdir, "bib-canary-fakearch"), []byte(content), 0755) + err := os.WriteFile(filepath.Join(tmpdir, "bib-canary-fakearch"), []byte(content), 0o755) assert.NoError(t, err) }