Browse Source

Fix chooseHubBranch when latest() doesn't work (#2178)

* Fix chooseHubBranch when latest() doesn't works
AlteredCoder 2 years ago
parent
commit
c0e6c1ac78
1 changed files with 2 additions and 1 deletions
  1. 2 1
      pkg/cwhub/helpers.go

+ 2 - 1
pkg/cwhub/helpers.go

@@ -16,7 +16,8 @@ import (
 func chooseHubBranch() (string, error) {
 func chooseHubBranch() (string, error) {
 	latest, err := cwversion.Latest()
 	latest, err := cwversion.Latest()
 	if err != nil {
 	if err != nil {
-		return "master", err
+		//lint:ignore nilerr reason
+		return "master", nil // ignore
 	}
 	}
 
 
 	csVersion := cwversion.VersionStrip()
 	csVersion := cwversion.VersionStrip()