mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-18 14:47:03 +00:00
Avoid unnecessary calls to fmt.Sprintf
The linter caught some unnecessary calls to fmt.Sprintf. This patch removes them. There are no functional changes.
This commit is contained in:
@@ -74,7 +74,7 @@ func TestDSNOnTimeout(t *testing.T) {
|
||||
item := &Item{
|
||||
Message: Message{
|
||||
ID: <-newID,
|
||||
From: fmt.Sprintf("from@loco"),
|
||||
From: "from@loco",
|
||||
Rcpt: []*Recipient{
|
||||
mkR("to@to", Recipient_EMAIL, Recipient_PENDING, "err", "to@to")},
|
||||
Data: []byte("data"),
|
||||
@@ -245,7 +245,7 @@ func TestSerialization(t *testing.T) {
|
||||
item := &Item{
|
||||
Message: Message{
|
||||
ID: <-newID,
|
||||
From: fmt.Sprintf("from@loco"),
|
||||
From: "from@loco",
|
||||
Rcpt: []*Recipient{
|
||||
mkR("to@to", Recipient_EMAIL, Recipient_PENDING, "err", "to@to")},
|
||||
Data: []byte("data"),
|
||||
|
||||
Reference in New Issue
Block a user