summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doClean.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/doClean.go b/doClean.go
index 7a04cac..f7c6489 100644
--- a/doClean.go
+++ b/doClean.go
@@ -32,18 +32,18 @@ func doClean() error {
}
func doCleanUser() error {
+ if _, count, err := IsEverythingOnMaster(); err != nil {
+ if count == 0 {
+ log.Info("No repos are on the master branch")
+ return nil
+ }
+ log.Info("Not all repos are on the master branch")
+ // return err
+ }
+
all := me.forge.Repos.SortByFullPath()
for all.Scan() {
repo := all.Next()
- if _, count, err := IsEverythingOnMaster(); err != nil {
- if count == 0 {
- log.Info("No repos are on the master branch")
- return nil
- }
- log.Info("Not all repos are on the master branch")
- // return err
- }
-
if err := doCleanUserRepo(repo); err != nil {
log.Info(repo.GetGoPath(), err)
return err