From 562db195cdf667936105d92ebda7bb7b91fa7d68 Mon Sep 17 00:00:00 2001 From: Raul Jordan Date: Wed, 16 May 2018 13:28:50 -0400 Subject: [PATCH] sharding: return val in SaveCollation simplified Former-commit-id: 89be5b180c196bc4b965de200b4494abd5692f33 [formerly 9027cf7a563279b1fa6992732a3c2b2b5ca4c83b] Former-commit-id: 1303c98eca9ab5da08990c3371208ac4b6217cd3 --- sharding/shard.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sharding/shard.go b/sharding/shard.go index 76f31cb60..3408fbe75 100644 --- a/sharding/shard.go +++ b/sharding/shard.go @@ -192,10 +192,7 @@ func (s *Shard) SaveCollation(collation *Collation) error { if err := s.SaveHeader(collation.Header()); err != nil { return err } - if err := s.SaveBody(collation.Body()); err != nil { - return err - } - return nil + return s.SaveBody(collation.Body()) } // SetCanonical sets the collation header as canonical in the shardDB. This is called