Skip to content

Commit 4965342

Browse files
committed
fix golang critics
1 parent eb9dcf5 commit 4965342

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/snclient/snclient.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ func (snc *Agent) RunCheck(name string, args []string) *CheckResult {
782782
// RunCheckWithContext calls check by name and returns the check result.
783783
// secCon configuration section will be used to check for nasty characters and allowed arguments.
784784
func (snc *Agent) RunCheckWithContext(ctx context.Context, name string, args []string, timeoutOverride float64, transportConf *ConfigSection, skipAlias bool) *CheckResult {
785-
t1 := time.Now()
785+
start := time.Now()
786786
res, chk := snc.runCheck(ctx, name, args, timeoutOverride, transportConf, false, skipAlias)
787787
if res.Raw == nil || res.Raw.showHelp == 0 {
788788
if chk != nil {
@@ -791,7 +791,7 @@ func (snc *Agent) RunCheckWithContext(ctx context.Context, name string, args []s
791791
res.Finalize(nil)
792792
}
793793
}
794-
log.Debugf("check %s took %s to finish", name, time.Since(t1))
794+
log.Debugf("check %s took %s to finish", name, time.Since(start))
795795

796796
return res
797797
}

0 commit comments

Comments
 (0)