Skip to content

Commit

Permalink
fix: Set sig to Array when empty (#533)
Browse files Browse the repository at this point in the history
* fix: Set sig to Array when empty

Signed-off-by: Edward Brough <edward.brough@gmail.com>

* Removing gitpod config

Signed-off-by: Edward Brough <edward.brough@gmail.com>

---------

Signed-off-by: Edward Brough <edward.brough@gmail.com>
  • Loading branch information
ChevronTango authored Oct 10, 2023
1 parent 35c71e4 commit 9570146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sign/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func Marshal(v interface{}, keys ...keys.Signer) (*data.Signed, error) {
if err != nil {
return nil, err
}
s := &data.Signed{Signed: b}
s := &data.Signed{Signed: b, Signatures: make([]data.Signature, 0)}
for _, k := range keys {
if err := Sign(s, k); err != nil {
return nil, err
Expand Down

0 comments on commit 9570146

Please sign in to comment.