浏览代码

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

* Fix chooseHubBranch when latest() doesn't works
AlteredCoder 2 年之前
父节点
当前提交
c0e6c1ac78
共有 1 个文件被更改,包括 2 次插入1 次删除
  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()