diff options
| author | Jeff Carr <[email protected]> | 2025-01-19 04:31:49 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-19 04:31:49 -0600 |
| commit | 66dc174bbac6df66e2bf90d48007089db0428702 (patch) | |
| tree | edd314d883adcc22a6f223be7abfaaba34752d61 /main.go | |
| parent | 3adf184a4ad6f9012c8055b1af453394844898cd (diff) | |
this needs reworkv0.0.33
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 |
