From: Sergey Matveev Date: Sun, 26 Oct 2025 11:12:56 +0000 (+0300) Subject: No unnecessary String() call X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=refs%2Fheads%2Fdevelop;p=nncp.git No unnecessary String() call --- diff --git a/src/toss.go b/src/toss.go index e71496c..bebad97 100644 --- a/src/toss.go +++ b/src/toss.go @@ -185,8 +185,10 @@ func jobProcess( } if !opts.DryRun { cmd := exec.Command(cmdline[0], append(cmdline[1:], args...)...) - origin := sender.Id.String() - if sender.Origin != nil { + var origin string + if sender.Origin == nil { + origin = sender.Id.String() + } else { origin = sender.Origin.String() } cmd.Env = append(