Skip to content

Commit

Permalink
appease linter
Browse files Browse the repository at this point in the history
  • Loading branch information
lestrrat committed Nov 23, 2020
1 parent dadf93e commit 6b5773b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jwe/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,9 @@ func (m *Message) Decrypt(alg jwa.KeyEncryptionAlgorithm, key interface{}) ([]by
recipients := m.recipients
if len(recipients) == 0 {
r := NewRecipient()
r.SetHeaders(m.protectedHeaders)
if err := r.SetHeaders(m.protectedHeaders); err != nil {
return nil, errors.Wrap(err, `failed to set headers to recipient`)
}
recipients = append(recipients, r)
}

Expand Down

0 comments on commit 6b5773b

Please sign in to comment.