diff options
| -rw-r--r-- | sth.go | 2 | ||||
| -rw-r--r-- | sth_test.go | 7 | 
2 files changed, 1 insertions, 8 deletions
| @@ -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 diff --git a/sth_test.go b/sth_test.go index a75ca5f..0942ea1 100644 --- a/sth_test.go +++ b/sth_test.go @@ -163,13 +163,6 @@ func TestCosigned(t *testing.T) {  			wantErr:     true,  		},  		{ -			description: "invalid: no cosigned sth: nil signatures", -			source: &ActiveSthSource{ -				currCosth: testdata.DefaultCosth(t, testdata.Ed25519VkLog, nil), -			}, -			wantErr: true, -		}, -		{  			description: "valid",  			source: &ActiveSthSource{  				currCosth: testdata.DefaultCosth(t, testdata.Ed25519VkLog, [][32]byte{testdata.Ed25519VkWitness}), | 
