aboutsummaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-11-27 14:57:58 +0100
committerGitHub <noreply@github.com>2017-11-27 14:57:58 +0100
commit4e51e9e877e4e70c320bdda7e44d61618c6ae900 (patch)
tree791b48688be56d5936f9384559b234dfddf9a885 /storage
parent60c567f0a3c22ac53f219fcc6482ee0e2ff425e6 (diff)
parentc606e9fd6c4a8b9a49d3d276d1547f985accc92f (diff)
downloadgo-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.go1
-rw-r--r--storage/filesystem/internal/dotgit/writers_test.go1
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)
}