From 3f884d66686feae5c213bb2b4c2024747570075c Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sun, 26 Oct 2025 14:12:56 +0300 Subject: [PATCH] No unnecessary String() call --- src/toss.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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( -- 2.52.0