Make source private

This commit is contained in:
Christian Muehlhaeuser 2020-03-31 08:53:35 +02:00
commit ec9cc0bde4
No known key found for this signature in database
GPG key ID: 3CF9FA45CA1EBB7E
3 changed files with 17 additions and 11 deletions

View file

@ -22,7 +22,7 @@ func isGitLabURL(s string) (string, bool) {
}
// findGitLabREADME tries to find the correct README filename in a repository
func findGitLabREADME(s string) (*Source, error) {
func findGitLabREADME(s string) (*source, error) {
u, err := url.ParseRequestURI(s)
if err != nil {
return nil, err
@ -38,7 +38,7 @@ func findGitLabREADME(s string) (*Source, error) {
}
if resp.StatusCode == http.StatusOK {
return &Source{resp.Body, v.String()}, nil
return &source{resp.Body, v.String()}, nil
}
}