Skip to content

Commit

Permalink
unreachable return after panic
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmenendez committed Sep 25, 2024
1 parent 8412a32 commit 4237ed3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions api/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ func (a *API) signTxHandler(w http.ResponseWriter, r *http.Request) {
amount, ok := a.account.TxCosts[models.TxType_CREATE_ACCOUNT]
if !ok {
panic("invalid tx type")
return
}
// generate the faucet package with the calculated amount
faucetPkg, err := a.account.FaucetPackage(organizationSigner.AddressString(), amount)
Expand Down Expand Up @@ -124,7 +123,6 @@ func (a *API) signTxHandler(w http.ResponseWriter, r *http.Request) {
amount, ok := a.account.TxCosts[models.TxType_NEW_PROCESS]
if !ok {
panic("invalid tx type")
return
}
// increment the amount with the election price to fund the
// faucet package with the required amount for this type of
Expand Down

0 comments on commit 4237ed3

Please sign in to comment.