mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-19 04:57:14 +03:00
Fix lint issues: gocritic linter
This commit is contained in:
parent
29c4983fdc
commit
647870fb4c
@ -73,7 +73,7 @@ func (r *RepoURL) ValidGitHubURL() error {
|
||||
return fmt.Errorf("%w: %s", ErrorUnsupportedHost, r.Host)
|
||||
}
|
||||
|
||||
if len(strings.TrimSpace(r.Owner)) == 0 || len(strings.TrimSpace(r.Repo)) == 0 {
|
||||
if strings.TrimSpace(r.Owner) == "" || strings.TrimSpace(r.Repo) == "" {
|
||||
return fmt.Errorf("%w: [%s], pass the full repository URL", ErrorInvalidGithubURL, r.URL())
|
||||
}
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user