Skip to content

Commit

Permalink
feedback: more idiomatic code
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkmin committed Oct 28, 2024
1 parent a61d3ed commit 92a77e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cmd/turnkey/pkg/wallets.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,7 @@ var walletAccountExportCmd = &cobra.Command{
}

exportBundle := resp.Payload.Activity.Result.ExportWalletAccountResult.ExportBundle
err = writeFile(*exportBundle, exportBundlePath)
if err != nil {
if err := writeFile(*exportBundle, exportBundlePath); err != nil {
OutputError(eris.Wrap(err, "failed to write export bundle to file"))
}

Expand Down

0 comments on commit 92a77e5

Please sign in to comment.