chore: refactor code (#1700)

This commit is contained in:
Kevin Wan
2022-03-23 19:09:45 +08:00
committed by GitHub
parent d8054d8def
commit 3febb1a5d0
6 changed files with 7 additions and 8 deletions

View File

@@ -79,7 +79,7 @@ func TestGetGoctlHome(t *testing.T) {
t.Run("goctl_is_file", func(t *testing.T) {
tmpFile := filepath.Join(t.TempDir(), "a.tmp")
backupTempFile := tmpFile + ".old"
err := ioutil.WriteFile(tmpFile, nil, 0666)
err := ioutil.WriteFile(tmpFile, nil, 0o666)
if err != nil {
return
}
@@ -104,5 +104,4 @@ func TestGetGoctlHome(t *testing.T) {
assert.Nil(t, err)
assert.Equal(t, dir, home)
})
}