Skip to content

Commit

Permalink
Merge pull request #1212 from testwill/fmt
Browse files Browse the repository at this point in the history
chore: unnecessary use of fmt.Sprintf
  • Loading branch information
parsley42 committed Aug 29, 2023
2 parents 65cefed + 7302609 commit 4c00dbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions slacktest/data.go
Expand Up @@ -35,11 +35,11 @@ var okWebResponse = slack.SlackResponse{
Ok: true,
}

var defaultOkJSON = fmt.Sprintf(`
var defaultOkJSON = `
{
"ok": true
}
`)
`

var defaultChannelsListJSON = fmt.Sprintf(`
{
Expand Down
2 changes: 1 addition & 1 deletion slacktest/server_test.go
Expand Up @@ -48,7 +48,7 @@ func TestBotDirectMessageBotHandler(t *testing.T) {
s := NewTestServer()
go s.Start()
s.SendDirectMessageToBot("some text")
expectedMsg := fmt.Sprintf("some text")
expectedMsg := "some text"
time.Sleep(2 * time.Second)
assert.True(t, s.SawOutgoingMessage(expectedMsg))
s.Stop()
Expand Down

0 comments on commit 4c00dbd

Please sign in to comment.