From 3937902a7d77831912b931c49c9d7f37bbecb68b Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 1 Feb 2024 13:30:01 -0600 Subject: [PATCH] return true/false Signed-off-by: Jeff Carr --- gitConfig.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gitConfig.go b/gitConfig.go index 611cb7e..e7c581b 100644 --- a/gitConfig.go +++ b/gitConfig.go @@ -463,14 +463,14 @@ func (rs *RepoStatus) CheckGoSum() (bool, string) { return true, "" } -func (rs *RepoStatus) MakeRedomod() { +func (rs *RepoStatus) MakeRedomod() bool { var err error var b bool var output string var worked bool = true if rs.ReadOnly() { log.Log(WARN, "will not go mod redo read only repos", rs.String()) - return + return false } os.Unsetenv("GO111MODULE") @@ -495,6 +495,7 @@ func (rs *RepoStatus) MakeRedomod() { } else { log.Log(WARN, "MakeRedomod() failed", path) } + return worked } func (rs *RepoStatus) ReadOnly() bool {