From c606e9fd6c4a8b9a49d3d276d1547f985accc92f Mon Sep 17 00:00:00 2001 From: ferhat elmas Date: Sun, 26 Nov 2017 23:45:51 +0100 Subject: all: fixes for ineffective assign --- storage/filesystem/internal/dotgit/dotgit_test.go | 1 + storage/filesystem/internal/dotgit/writers_test.go | 1 + 2 files changed, 2 insertions(+) (limited to 'storage/filesystem/internal/dotgit') 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) } -- cgit