Skip to content

Commit 1d23818

Browse files
author
YuPengZTE
committed
The first letter should be small in error of remote.go
Signed-off-by: YuPengZTE <yu.peng36@zte.com.cn>
1 parent 9a570f8 commit 1d23818

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

builder/remote.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var mimeRe = regexp.MustCompile(acceptableRemoteMIME)
3333
func MakeRemoteContext(remoteURL string, contentTypeHandlers map[string]func(io.ReadCloser) (io.ReadCloser, error)) (ModifiableContext, error) {
3434
f, err := httputils.Download(remoteURL)
3535
if err != nil {
36-
return nil, fmt.Errorf("Error downloading remote context %s: %v", remoteURL, err)
36+
return nil, fmt.Errorf("error downloading remote context %s: %v", remoteURL, err)
3737
}
3838
defer f.Body.Close()
3939

@@ -44,7 +44,7 @@ func MakeRemoteContext(remoteURL string, contentTypeHandlers map[string]func(io.
4444

4545
contentType, contextReader, err = inspectResponse(contentType, f.Body, clen)
4646
if err != nil {
47-
return nil, fmt.Errorf("Error detecting content type for remote %s: %v", remoteURL, err)
47+
return nil, fmt.Errorf("error detecting content type for remote %s: %v", remoteURL, err)
4848
}
4949
defer contextReader.Close()
5050

@@ -118,7 +118,7 @@ func inspectResponse(ct string, r io.ReadCloser, clen int64) (string, io.ReadClo
118118
preamble := make([]byte, plen, plen)
119119
rlen, err := r.Read(preamble)
120120
if rlen == 0 {
121-
return ct, r, errors.New("Empty response")
121+
return ct, r, errors.New("empty response")
122122
}
123123
if err != nil && err != io.EOF {
124124
return ct, r, err

0 commit comments

Comments
 (0)