bib: change octal literal prefix
Use `0o` instead of just `0` for better readability.
This commit is contained in:
parent
2a89cb6739
commit
3cd7df7b13
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ func TestValidateCanRunTargetArchUnsupportedCanary(t *testing.T) {
|
||||||
func makeFakeCanary(t *testing.T, content string) {
|
func makeFakeCanary(t *testing.T, content string) {
|
||||||
tmpdir := t.TempDir()
|
tmpdir := t.TempDir()
|
||||||
t.Setenv("PATH", os.Getenv("PATH")+":"+tmpdir)
|
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)
|
assert.NoError(t, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue