diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2021-12-11 12:02:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-11 12:02:17 +0100 |
commit | f0b111ab70e4e90013658b0835929b2083902017 (patch) | |
tree | 04acaf3ded2a73541c213e10442602e346039bd0 /storage | |
parent | e60e348f614a7272e4a51bdee8ba20f059ca4cce (diff) | |
parent | 4ccea5bb8d8c12cb31dba22f36864ffb91529559 (diff) | |
download | go-git-f0b111ab70e4e90013658b0835929b2083902017.tar.gz |
Merge pull request #425 from abhinav/error-strings
error strings: Don't capitalize, use periods, or newlines
Diffstat (limited to 'storage')
-rw-r--r-- | storage/filesystem/dotgit/reader.go | 2 | ||||
-rw-r--r-- | storage/memory/storage.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/storage/filesystem/dotgit/reader.go b/storage/filesystem/dotgit/reader.go index a82ac94..975f92a 100644 --- a/storage/filesystem/dotgit/reader.go +++ b/storage/filesystem/dotgit/reader.go @@ -66,7 +66,7 @@ func (e *EncodedObject) Size() int64 { func (e *EncodedObject) SetSize(int64) {} func (e *EncodedObject) Writer() (io.WriteCloser, error) { - return nil, fmt.Errorf("Not supported") + return nil, fmt.Errorf("not supported") } func NewEncodedObject(dir *DotGit, h plumbing.Hash, t plumbing.ObjectType, size int64) *EncodedObject { diff --git a/storage/memory/storage.go b/storage/memory/storage.go index a8e5669..ef6a445 100644 --- a/storage/memory/storage.go +++ b/storage/memory/storage.go @@ -193,7 +193,7 @@ func (o *ObjectStorage) DeleteOldObjectPackAndIndex(plumbing.Hash, time.Time) er return nil } -var errNotSupported = fmt.Errorf("Not supported") +var errNotSupported = fmt.Errorf("not supported") func (o *ObjectStorage) LooseObjectTime(hash plumbing.Hash) (time.Time, error) { return time.Time{}, errNotSupported |