aboutsummaryrefslogtreecommitdiffstats
path: root/entities/identity/identity_user.go
diff options
context:
space:
mode:
Diffstat (limited to 'entities/identity/identity_user.go')
-rw-r--r--entities/identity/identity_user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/entities/identity/identity_user.go b/entities/identity/identity_user.go
index cbbb8974..7eb374d4 100644
--- a/entities/identity/identity_user.go
+++ b/entities/identity/identity_user.go
@@ -23,7 +23,7 @@ func GetUserIdentity(repo repository.Repo) (*Identity, error) {
}
i, err := ReadLocal(repo, id)
- if err == ErrIdentityNotExist {
+ if entity.IsErrNotFound(err) {
innerErr := repo.LocalConfig().RemoveAll(identityConfigKey)
if innerErr != nil {
_, _ = fmt.Fprintln(os.Stderr, errors.Wrap(innerErr, "can't clear user identity").Error())