unnecessary use of fmt.Sprint (S1039) (#10049)
This commit is contained in:
parent
114ae77fb7
commit
7043f6ae29
11 changed files with 58 additions and 62 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue