mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
refactor: enable errorlint and refactor code (#14110)
* refactor: enable errorlint and refactor code * revert * revert * add bazel * gofmt * gofmt * gofmt * gofmt * gci * lint --------- Co-authored-by: Radosław Kapka <rkapka@wp.pl>
This commit is contained in:
@@ -59,12 +59,12 @@ func InputDirectory(cliCtx *cli.Context, promptText string, flag *cli.StringFlag
|
||||
|
||||
// FormatPromptError for the user.
|
||||
func FormatPromptError(err error) error {
|
||||
switch err {
|
||||
case promptui.ErrAbort:
|
||||
switch {
|
||||
case errors.Is(err, promptui.ErrAbort):
|
||||
return errors.New("wallet creation aborted, closing")
|
||||
case promptui.ErrInterrupt:
|
||||
case errors.Is(err, promptui.ErrInterrupt):
|
||||
return errors.New("keyboard interrupt, closing")
|
||||
case promptui.ErrEOF:
|
||||
case errors.Is(err, promptui.ErrEOF):
|
||||
return errors.New("no input received, closing")
|
||||
default:
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user