sharding: return val in SaveCollation simplified

Former-commit-id: 89be5b180c196bc4b965de200b4494abd5692f33 [formerly 9027cf7a563279b1fa6992732a3c2b2b5ca4c83b]
Former-commit-id: 1303c98eca9ab5da08990c3371208ac4b6217cd3
This commit is contained in:
Raul Jordan 2018-05-16 13:28:50 -04:00
parent 564ba9289b
commit 562db195cd

View File

@ -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