aboutsummaryrefslogtreecommitdiffstats
path: root/identity/identity.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-07-01 20:00:53 +0200
committerMichael Muré <batolettre@gmail.com>2020-10-04 20:50:15 +0200
commit499dbc0a032ff28eea99e5308be9b6c8f2d208ad (patch)
tree0ebfbc122240736292338275a5b599abaa7d710b /identity/identity.go
parent5d1fc3ff393133a8aa67b97f9beecfe9b57c7e56 (diff)
downloadgit-bug-499dbc0a032ff28eea99e5308be9b6c8f2d208ad.tar.gz
identity: remove support for legacy identity
Diffstat (limited to 'identity/identity.go')
-rw-r--r--identity/identity.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/identity/identity.go b/identity/identity.go
index c960a1af..b7bf9e64 100644
--- a/identity/identity.go
+++ b/identity/identity.go
@@ -441,7 +441,7 @@ func (i *Identity) lastVersion() *Version {
// Id return the Identity identifier
func (i *Identity) Id() entity.Id {
- if i.id == "" {
+ if i.id == "" || i.id == entity.UnsetId {
// simply panic as it would be a coding error
// (using an id of an identity not stored yet)
panic("no id yet")