aboutsummaryrefslogtreecommitdiffstats
path: root/identity/identity.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-10-04 20:57:54 +0200
committerGitHub <noreply@github.com>2020-10-04 20:57:54 +0200
commitc738852af0b8b1013c7911f2c3d275446d9e8936 (patch)
tree0ebfbc122240736292338275a5b599abaa7d710b /identity/identity.go
parent5d1fc3ff393133a8aa67b97f9beecfe9b57c7e56 (diff)
parent499dbc0a032ff28eea99e5308be9b6c8f2d208ad (diff)
downloadgit-bug-c738852af0b8b1013c7911f2c3d275446d9e8936.tar.gz
Merge pull request #417 from MichaelMure/remove-legacy-identity
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")