Problem: error string are capitalized
Solution: lowercase strings
This commit is contained in:
parent
637c223f0c
commit
e98d9545d0
|
@ -37,7 +37,7 @@ func (cs *charsetISO88591er) ReadByte() (b byte, err error) {
|
|||
|
||||
func (cs *charsetISO88591er) Read(p []byte) (int, error) {
|
||||
// Use ReadByte method.
|
||||
return 0, errors.New("Use ReadByte()")
|
||||
return 0, errors.New("use ReadByte()")
|
||||
}
|
||||
|
||||
func isCharsetISO88591(charset string) bool {
|
||||
|
|
|
@ -303,7 +303,7 @@ type Enclosure struct {
|
|||
// Get uses http.Get to fetch an enclosure.
|
||||
func (e *Enclosure) Get() (io.ReadCloser, error) {
|
||||
if e == nil || e.URL == "" {
|
||||
return nil, errors.New("No enclosure")
|
||||
return nil, errors.New("no enclosure")
|
||||
}
|
||||
|
||||
res, err := http.Get(e.URL)
|
||||
|
@ -325,7 +325,7 @@ type Image struct {
|
|||
// Get uses http.Get to fetch an image.
|
||||
func (i *Image) Get() (io.ReadCloser, error) {
|
||||
if i == nil || i.URL == "" {
|
||||
return nil, errors.New("No image")
|
||||
return nil, errors.New("no image")
|
||||
}
|
||||
|
||||
res, err := http.Get(i.URL)
|
||||
|
|
Loading…
Reference in New Issue
Block a user