summaryrefslogtreecommitdiffstatshomepage
path: root/entities/identity/common.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2023-08-14 16:58:06 +0200
committerMichael Muré <batolettre@gmail.com>2023-08-14 16:58:06 +0200
commit297e1931a7b5913275e8e9b0a46494d95e7e5e7c (patch)
tree5c5ef10f66bff4f9e6e3bbe87c70c02940bdbce3 /entities/identity/common.go
parentf0167a1d6068d22af5ffff260e2848f7c14a71b3 (diff)
downloadgit-bug-bootstrap-rework-2.tar.gz
git-bug-bootstrap-rework-2.zip
Diffstat (limited to 'entities/identity/common.go')
-rw-r--r--entities/identity/common.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/entities/identity/common.go b/entities/identity/common.go
index 88e30e338..749def636 100644
--- a/entities/identity/common.go
+++ b/entities/identity/common.go
@@ -3,6 +3,8 @@ package identity
import (
"encoding/json"
"fmt"
+
+ bootstrap "github.com/MichaelMure/git-bug/entity/boostrap"
)
// Custom unmarshaling function to allow package user to delegate
@@ -10,7 +12,7 @@ import (
// and a Bare.
//
// If the given message has a "id" field, it's considered being a proper Identity.
-func UnmarshalJSON(raw json.RawMessage) (Interface, error) {
+func UnmarshalJSON(raw json.RawMessage) (bootstrap.Identity, error) {
aux := &IdentityStub{}
// First try to decode and load as a normal Identity