diff options
Diffstat (limited to 'identity')
-rw-r--r-- | identity/version.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/identity/version.go b/identity/version.go index ce5cc7d6..cbd56a98 100644 --- a/identity/version.go +++ b/identity/version.go @@ -159,11 +159,8 @@ func (v *version) UnmarshalJSON(data []byte) error { return err } - if aux.FormatVersion < formatVersion { - return entity.NewErrOldFormatVersion(aux.FormatVersion) - } - if aux.FormatVersion > formatVersion { - return entity.NewErrNewFormatVersion(aux.FormatVersion) + if aux.FormatVersion != formatVersion { + return entity.NewErrInvalidFormat(aux.FormatVersion, formatVersion) } v.id = entity.DeriveId(data) |