Skip to content

Commit a24ac68

Browse files
authored
refactor: replace []byte(fmt.Sprintf) with fmt.Appendf (#4161)
Signed-off-by: queryfast <queryfast@outlook.com>
1 parent 7aa6a17 commit a24ac68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snow/engine/common/request.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ type Request struct {
1515
}
1616

1717
func (r Request) MarshalText() ([]byte, error) {
18-
return []byte(fmt.Sprintf("%s:%d", r.NodeID, r.RequestID)), nil
18+
return fmt.Appendf(nil, "%s:%d", r.NodeID, r.RequestID), nil
1919
}

0 commit comments

Comments
 (0)