Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,6 @@ dist/
dump_extracted.sql
dump_postgres_reordered_data_only.sql
dump_postgres_reordered_fixed.sql

singularity
singularity.
1 change: 1 addition & 0 deletions handler/wallet/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@
switch {
case !hasKeyType && !hasAddress && !hasActorID:
return nil, errors.New("must specify either KeyType (for UserWallet) or Address/ActorID (for SPWallet)")
case !hasKeyType && (!hasAddress || !hasActorID):
case !hasKeyType && !(hasAddress && hasActorID):

Check failure on line 160 in handler/wallet/create.go

View workflow job for this annotation

GitHub Actions / go-check / All

QF1001: could apply De Morgan's law (staticcheck)

Check failure on line 160 in handler/wallet/create.go

View workflow job for this annotation

GitHub Actions / go-check / All

QF1001: could apply De Morgan's law (staticcheck)
return nil, errors.New("must specify both Address and ActorID (for SPWallet)")
case hasKeyType && (hasAddress || hasActorID):
return nil, errors.New("cannot specify both KeyType (for UserWallet) and Address/ActorID (for SPWallet) - please specify parameters for one wallet type")
Expand Down
Loading