Skip to content

Commit

Permalink
Update api/apikeys.go
Browse files Browse the repository at this point in the history
Co-authored-by: Peter-Jan Brone <peter-jan@settlemint.com>
  • Loading branch information
ro-tex and Peter-Jan Brone committed Mar 17, 2022
1 parent 26a2332 commit 0323412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/apikeys.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (akp APIKeyPOST) Validate() error {
if !akp.Public && len(akp.Skylinks) > 0 {
return errors.New("public API keys cannot refer to skylinlks")
}
errs := make([]error, 0)
var errs []error
for _, s := range akp.Skylinks {
if !database.ValidSkylinkHash(s) {
errs = append(errs, errors.New("invalid skylink:"+s))
Expand Down

0 comments on commit 0323412

Please sign in to comment.