unnecessary use of fmt.Sprint (S1039) (#10049)

This commit is contained in:
guangwu 2023-06-12 02:49:54 +08:00 committed by GitHub
parent 114ae77fb7
commit 7043f6ae29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 58 additions and 62 deletions

View file

@ -109,7 +109,7 @@ func TestNginxCheck(t *testing.T) {
})
// pollute pid file
pidFile.Write([]byte(fmt.Sprint("999999")))
pidFile.Write([]byte("999999"))
pidFile.Close()
t.Run("bad pid", func(t *testing.T) {