return true/false

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-01 13:30:01 -06:00
parent 08b122ea2c
commit 3937902a7d
1 changed files with 3 additions and 2 deletions

View File

@ -463,14 +463,14 @@ func (rs *RepoStatus) CheckGoSum() (bool, string) {
return true, "" return true, ""
} }
func (rs *RepoStatus) MakeRedomod() { func (rs *RepoStatus) MakeRedomod() bool {
var err error var err error
var b bool var b bool
var output string var output string
var worked bool = true var worked bool = true
if rs.ReadOnly() { if rs.ReadOnly() {
log.Log(WARN, "will not go mod redo read only repos", rs.String()) log.Log(WARN, "will not go mod redo read only repos", rs.String())
return return false
} }
os.Unsetenv("GO111MODULE") os.Unsetenv("GO111MODULE")
@ -495,6 +495,7 @@ func (rs *RepoStatus) MakeRedomod() {
} else { } else {
log.Log(WARN, "MakeRedomod() failed", path) log.Log(WARN, "MakeRedomod() failed", path)
} }
return worked
} }
func (rs *RepoStatus) ReadOnly() bool { func (rs *RepoStatus) ReadOnly() bool {