Skip to content

Commit f54ca48

Browse files
committed
fix(client): only delete local ~/.deis/client.json if cancelling logged in user
1 parent 412f432 commit f54ca48

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/cmd/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ func Cancel(username string, password string, yes bool) error {
247247
}
248248

249249
// If user targets themselves, logout.
250-
if username != "" || c.Username == username {
250+
if username == "" || c.Username == username {
251251
if err := client.Delete(); err != nil {
252252
return err
253253
}

0 commit comments

Comments
 (0)