disco: simplify expression, appease staticcheck

Was:
disco/disco.go:164:10: unnecessary use of fmt.Sprintf (S1039)
pull/517/head
Brad Fitzpatrick 4 years ago
parent 57e8931160
commit 847b6f039b

@ -161,7 +161,7 @@ func MessageSummary(m Message) string {
case *Pong: case *Pong:
return fmt.Sprintf("pong tx=%x", m.TxID) return fmt.Sprintf("pong tx=%x", m.TxID)
case CallMeMaybe: case CallMeMaybe:
return fmt.Sprintf("call-me-maybe") return "call-me-maybe"
default: default:
return fmt.Sprintf("%#v", m) return fmt.Sprintf("%#v", m)
} }

Loading…
Cancel
Save