mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-18 02:48:40 +00:00
disco: simplify expression, appease staticcheck
Was: disco/disco.go:164:10: unnecessary use of fmt.Sprintf (S1039)
This commit is contained in:
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…
x
Reference in New Issue
Block a user