Skip to content

Commit

Permalink
chore: unnecessary use of fmt.Sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill committed Jul 10, 2023
1 parent c4095cb commit 7302609
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 7302609

Please sign in to comment.