From 0622e35471752f7bbf23cc0b13a2612f0738e5c3 Mon Sep 17 00:00:00 2001 From: Raw Pong Ghmoa <58883403+q9f@users.noreply.github.com> Date: Mon, 27 Apr 2020 18:03:38 +0200 Subject: [PATCH] validator/accounts restore new validator account creation --- validator/accounts/account.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/validator/accounts/account.go b/validator/accounts/account.go index c3d519df4abe..e562bee53e9f 100644 --- a/validator/accounts/account.go +++ b/validator/accounts/account.go @@ -159,9 +159,9 @@ func CreateValidatorAccount(path string, passphrase string) (string, string, err if text = strings.Replace(text, "\n", "", -1); text != "" { path = text } - if err := NewValidatorAccount(path, passphrase); err != nil { - return "", "", errors.Wrapf(err, "could not initialize validator account") - } + } + if err := NewValidatorAccount(path, passphrase); err != nil { + return "", "", errors.Wrapf(err, "could not initialize validator account") } return path, passphrase, nil }