summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/main.go b/main.go
index d43e230..f324596 100644
--- a/main.go
+++ b/main.go
@@ -52,6 +52,13 @@ func main() {
okExit(check, "go.mod and go.sum restored from ~/go/pkg/mod/")
}
+ if argv.Strict {
+ if err := doStrict(check); err != nil {
+ badExit(check, err)
+ }
+ okExit(check, "go.mod seems clean")
+ }
+
if err := doMain(check); err != nil {
badExit(check, err)
}
@@ -106,9 +113,6 @@ func saveAsMetadata(repo *gitpb.Repo) error {
}
func doMain(repo *gitpb.Repo) error {
- if argv.Strict {
- return doStrict(repo)
- }
if argv.Force {
err := doForce(repo)
return err