Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Set sig to Array when empty
Browse files Browse the repository at this point in the history
Signed-off-by: Edward Brough <[email protected]>
ChevronTango committed Jul 30, 2023
1 parent 4e4f7f3 commit 3f2422a
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
# and commit this file to your remote git repository to share the goodness with others.

# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart

tasks:
- init: python -m pip install --upgrade -r requirements-test.txt && go get && go build ./... && go test ./...


2 changes: 1 addition & 1 deletion sign/sign.go
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3f2422a

Please sign in to comment.