aboutsummaryrefslogtreecommitdiffstats
path: root/storage/filesystem/internal
diff options
context:
space:
mode:
authorferhat elmas <elmas.ferhat@gmail.com>2017-11-26 23:45:51 +0100
committerferhat elmas <elmas.ferhat@gmail.com>2017-11-26 23:45:52 +0100
commitc606e9fd6c4a8b9a49d3d276d1547f985accc92f (patch)
tree791b48688be56d5936f9384559b234dfddf9a885 /storage/filesystem/internal
parent60c567f0a3c22ac53f219fcc6482ee0e2ff425e6 (diff)
downloadgo-git-c606e9fd6c4a8b9a49d3d276d1547f985accc92f.tar.gz
all: fixes for ineffective assign
Diffstat (limited to 'storage/filesystem/internal')
-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)
}