Browse Source

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

* Fix chooseHubBranch when latest() doesn't works
AlteredCoder 2 năm trước cách đây
mục cha
commit
c0e6c1ac78
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      pkg/cwhub/helpers.go

+ 2 - 1
pkg/cwhub/helpers.go

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