Use canonical imports (#822)

* fix: challenge are not required for revoke.
This commit is contained in:
Ludovic Fernandez 2019-03-11 16:54:35 +01:00 committed by GitHub
parent 62fea05e21
commit 219222fdda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
197 changed files with 229 additions and 231 deletions

View file

@ -1,4 +1,4 @@
package cmd
package cmd // import "github.com/xenolf/lego/cmd"
import (
"crypto"
@ -53,6 +53,7 @@ func createRenew() cli.Command {
func renew(ctx *cli.Context) error {
account, client := setup(ctx, NewAccountsStorage(ctx))
setupChallenges(ctx, client)
if account.Registration == nil {
log.Fatalf("Account %s is not registered. Use 'run' to register a new account.\n", account.Email)