From 647870fb4ca3383d22519e3e656f07d8a1d398dd Mon Sep 17 00:00:00 2001 From: Chris McGehee Date: Sat, 8 May 2021 08:22:00 -0700 Subject: [PATCH] Fix lint issues: gocritic linter --- repos/repo_url.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/repo_url.go b/repos/repo_url.go index 4915fd4f..b9811d77 100644 --- a/repos/repo_url.go +++ b/repos/repo_url.go @@ -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