From 6a62be781be462c769bb1f61198ea584284e6bed Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 16 Oct 2025 03:59:14 -0500 Subject: rename that stupid variable finally --- exit.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'exit.go') diff --git a/exit.go b/exit.go index a9deec7..393ddec 100644 --- a/exit.go +++ b/exit.go @@ -17,8 +17,8 @@ import ( func (pb *Auto) GoodExit(msg string) { go ExitWatchdog() - if myAuto.appExit != nil { - myAuto.appExit() + if me.appExit != nil { + me.appExit() } dur := time.Since(pb.Ctime.AsTime()) log.Infof("%s: %s (%s)\n", pb.Argname, msg, cobol.FormatDuration(dur)) @@ -27,8 +27,8 @@ func (pb *Auto) GoodExit(msg string) { func (pb *Auto) BadExit(msg string, err error) { go ExitWatchdog() - if myAuto.appExit != nil { - myAuto.appExit() + if me.appExit != nil { + me.appExit() } // print out errors. this handles wrapped errors which is a useful if err != nil { @@ -68,7 +68,7 @@ func ExitWatchdog() { return case t := <-dog.C: _ = t - log.Info("argv.Exit() watchdog: stalled in", myAuto.ARGNAME+".Exit()") + log.Info("argv.Exit() watchdog: stalled in", me.ARGNAME+".Exit()") // h.Scan() } } -- cgit v1.2.3