diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-11-27 14:57:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-27 14:57:58 +0100 |
commit | 4e51e9e877e4e70c320bdda7e44d61618c6ae900 (patch) | |
tree | 791b48688be56d5936f9384559b234dfddf9a885 /storage | |
parent | 60c567f0a3c22ac53f219fcc6482ee0e2ff425e6 (diff) | |
parent | c606e9fd6c4a8b9a49d3d276d1547f985accc92f (diff) | |
download | go-git-4e51e9e877e4e70c320bdda7e44d61618c6ae900.tar.gz |
Merge pull request #661 from ferhatelmas/ineffassign
all: fixes for ineffective assign
Diffstat (limited to 'storage')
-rw-r--r-- | storage/filesystem/internal/dotgit/dotgit_test.go | 1 | ||||
-rw-r--r-- | storage/filesystem/internal/dotgit/writers_test.go | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/storage/filesystem/internal/dotgit/dotgit_test.go b/storage/filesystem/internal/dotgit/dotgit_test.go index d73df19..7d327c8 100644 --- a/storage/filesystem/internal/dotgit/dotgit_test.go +++ b/storage/filesystem/internal/dotgit/dotgit_test.go @@ -418,6 +418,7 @@ func (s *SuiteDotGit) TestNewObject(c *C) { c.Assert(err, IsNil) err = w.WriteHeader(plumbing.BlobObject, 14) + c.Assert(err, IsNil) n, err := w.Write([]byte("this is a test")) c.Assert(err, IsNil) c.Assert(n, Equals, 14) diff --git a/storage/filesystem/internal/dotgit/writers_test.go b/storage/filesystem/internal/dotgit/writers_test.go index 29c4d45..bf00762 100644 --- a/storage/filesystem/internal/dotgit/writers_test.go +++ b/storage/filesystem/internal/dotgit/writers_test.go @@ -85,6 +85,7 @@ func (s *SuiteDotGit) TestNewObjectPackUnused(c *C) { // check clean up of temporary files info, err = fs.ReadDir("") + c.Assert(err, IsNil) for _, fi := range info { c.Assert(fi.IsDir(), Equals, true) } |