Merge pull request #6403 from guggero/fix-linter

cmd/lncli: fix linter issues after contributor PR [skip ci]
This commit is contained in:
Olaoluwa Osuntokun
2022-04-11 12:26:22 -04:00
committed by GitHub

View File

@@ -101,10 +101,10 @@ func actionDecorator(f func(*cli.Context) error) func(*cli.Context) error {
// two commands.
if s.Code() == codes.Unimplemented &&
(c.Command.Name == "create" ||
c.Command.Name == "unlock" ||
c.Command.Name == "unlock" ||
c.Command.Name == "changepassword" ||
c.Command.Name == "createwatchonly") {
return fmt.Errorf("Wallet is already unlocked")
}