Skip to content

Commit

Permalink
fix: ignore no_asset and error_message
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Sep 21, 2024
1 parent 59b555d commit 9749a58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/config/registry/package_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,9 @@ func (p *PackageInfo) defaultCmdName() string {
var placeHolderTemplate = regexp.MustCompile(`{{.*?}}`)

func (p *PackageInfo) pkgPaths() []string {

Check failure on line 671 in pkg/config/registry/package_info.go

View workflow job for this annotation

GitHub Actions / test / test

calculated cyclomatic complexity for function pkgPaths is 13, max is 10 (cyclop)
if p.NoAsset || p.ErrorMessage != "" {
return nil
}
switch p.Type {
case PkgInfoTypeGitHubArchive, PkgInfoTypeGoBuild, PkgInfoTypeGitHubContent, PkgInfoTypeGitHubRelease:
if p.RepoOwner == "" || p.RepoName == "" {
Expand Down

0 comments on commit 9749a58

Please sign in to comment.