summaryrefslogtreecommitdiff
path: root/exit.go
diff options
context:
space:
mode:
Diffstat (limited to 'exit.go')
-rw-r--r--exit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/exit.go b/exit.go
index 81224c3..ed70f58 100644
--- a/exit.go
+++ b/exit.go
@@ -18,7 +18,7 @@ func badExit(check *gitpb.Repo, err error) {
log.DaemonMode(true)
log.Info("go-mod-clean failed: ", err, forge.GetGoSrc())
if check != nil {
- if argv.Strict {
+ if argv.Strict != nil {
// if in strict mode, remove the go.mod and go.sum
eraseGoMod(check)
}