aboutsummaryrefslogtreecommitdiffstats
path: root/commit_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'commit_test.go')
-rw-r--r--commit_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/commit_test.go b/commit_test.go
index 19565fb..65f6400 100644
--- a/commit_test.go
+++ b/commit_test.go
@@ -170,8 +170,8 @@ func (s *SuiteCommit) TestFile(c *C) {
func makeObjectSlice(hashes []string, storage core.ObjectStorage) []core.Object {
series := make([]core.Object, 0, len(hashes))
for _, member := range hashes {
- obj, ok := storage.Get(core.NewHash(member))
- if ok {
+ obj, err := storage.Get(core.NewHash(member))
+ if err == nil {
series = append(series, obj)
}
}