1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-16 04:24:56 +02:00

internal/redis/channel.go: Don't need to use fmt.Sprintf() anymore.

This commit is contained in:
Henrik Hautakoski 2023-01-12 15:03:31 +01:00
parent 51af80d3aa
commit caf7460875

View file

@ -1,7 +1,6 @@
package redis
import (
"fmt"
"strings"
)
@ -38,11 +37,11 @@ func (ac ActionChannel) String() string {
ch := Channel{"actions"}
if len(ac.Contract) > 0 {
ch.Append(fmt.Sprintf("contract:%s", ac.Contract))
ch.Append("contract", ac.Contract)
}
if len(ac.Action) > 0 {
ch.Append(fmt.Sprintf("action:%s", ac.Action))
ch.Append("action", ac.Action)
}
return ch.String()