MM-23747 fix Sprintf linter errors (#14196)
- replace all instances of `fmt.Sprintf("whatever")` with simply "whatever".
- replace all instances of `fmt.Println(fmt.Sprintf("whatever %d", i))` with `fmt.Printf("whatever %d\n", i)`
Этот коммит содержится в:
@@ -442,17 +442,17 @@ func TestMentionsToTeamMembers(t *testing.T) {
|
||||
expectedMap model.UserMentionMap
|
||||
}{
|
||||
{
|
||||
fmt.Sprintf(""),
|
||||
"",
|
||||
th.BasicTeam.Id,
|
||||
model.UserMentionMap{},
|
||||
},
|
||||
{
|
||||
fmt.Sprintf("/trigger"),
|
||||
"/trigger",
|
||||
th.BasicTeam.Id,
|
||||
model.UserMentionMap{},
|
||||
},
|
||||
{
|
||||
fmt.Sprintf("/trigger 0 mentions"),
|
||||
"/trigger 0 mentions",
|
||||
th.BasicTeam.Id,
|
||||
model.UserMentionMap{},
|
||||
},
|
||||
@@ -527,17 +527,17 @@ func TestMentionsToPublicChannels(t *testing.T) {
|
||||
expectedMap model.ChannelMentionMap
|
||||
}{
|
||||
{
|
||||
fmt.Sprintf(""),
|
||||
"",
|
||||
th.BasicTeam.Id,
|
||||
model.ChannelMentionMap{},
|
||||
},
|
||||
{
|
||||
fmt.Sprintf("/trigger"),
|
||||
"/trigger",
|
||||
th.BasicTeam.Id,
|
||||
model.ChannelMentionMap{},
|
||||
},
|
||||
{
|
||||
fmt.Sprintf("/trigger 0 mentions"),
|
||||
"/trigger 0 mentions",
|
||||
th.BasicTeam.Id,
|
||||
model.ChannelMentionMap{},
|
||||
},
|
||||
|
||||
Ссылка в новой задаче
Block a user