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

* Fix chooseHubBranch when latest() doesn't works
This commit is contained in:
AlteredCoder 2023-04-28 11:24:04 +02:00 committed by GitHub
parent d286b044e7
commit c0e6c1ac78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()