pkg/errors: add comment to exported function (#676)

This commit is contained in:
Marwan Sulaiman
2018-09-19 01:38:15 -04:00
committed by GitHub
parent 5fe85f7cf5
commit 4b34b1fd28
+2
View File
@@ -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")
}