Remove some unnecessary errors

This commit is contained in:
Adnan Maolood
2020-11-04 23:46:05 -05:00
parent 95716296b4
commit cec1f118fb
4 changed files with 12 additions and 18 deletions

View File

@@ -14,12 +14,8 @@ var (
ErrCertificateExpired = errors.New("gemini: certificate expired")
ErrCertificateNotFound = errors.New("gemini: certificate not found")
ErrCertificateNotTrusted = errors.New("gemini: certificate not trusted")
ErrCertificateRequired = errors.New("gemini: certificate required")
ErrNotAFile = errors.New("gemini: not a file")
ErrNotAGeminiURL = errors.New("gemini: not a Gemini URL")
ErrBodyNotAllowed = errors.New("gemini: response status code does not allow for body")
ErrBodyNotAllowed = errors.New("gemini: response body not allowed")
ErrTooManyRedirects = errors.New("gemini: too many redirects")
ErrInputRequired = errors.New("gemini: input required")
)
// defaultClient is the default client. It is used by Get and Do.