mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00:32 +00:00
pkg/errors: add comment to exported function (#676)
This commit is contained in:
@@ -4,6 +4,8 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
// IsRepoNotFoundErr returns true if the Go command line
|
||||
// hints at a repository not found.
|
||||
func IsRepoNotFoundErr(err error) bool {
|
||||
return strings.Contains(err.Error(), "remote: Repository not found")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user