aboutsummaryrefslogtreecommitdiff
path: root/sth.go
diff options
context:
space:
mode:
Diffstat (limited to 'sth.go')
-rw-r--r--sth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/sth.go b/sth.go
index 30ba965..ee4dd2f 100644
--- a/sth.go
+++ b/sth.go
@@ -102,7 +102,7 @@ func (s *ActiveSthSource) Stable(_ context.Context) (*types.StItem, error) {
func (s *ActiveSthSource) Cosigned(_ context.Context) (*types.StItem, error) {
s.mutex.RLock()
defer s.mutex.RUnlock()
- if s.currCosth == nil || len(s.currCosth.CosignedTreeHeadV1.Cosignatures) == 0 {
+ if s.currCosth == nil {
return nil, fmt.Errorf("no cosigned sth available")
}
return s.currCosth, nil