diff options
author | Michael Muré <batolettre@gmail.com> | 2019-02-24 18:49:12 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2019-03-01 22:52:53 +0100 |
commit | 46beb4b886761ff69abe2ce45c2498a4fafe50d9 (patch) | |
tree | 2722505d859d93a309e6fcee40af7812c74d1220 /identity/identity_stub.go | |
parent | 475b7b4c490bc3729772932f2d7bbcabb8f781a7 (diff) | |
download | git-bug-46beb4b886761ff69abe2ce45c2498a4fafe50d9.tar.gz |
identity: another round of cleanups
Diffstat (limited to 'identity/identity_stub.go')
-rw-r--r-- | identity/identity_stub.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/identity/identity_stub.go b/identity/identity_stub.go index 1bfc18d0..b6bc0ab0 100644 --- a/identity/identity_stub.go +++ b/identity/identity_stub.go @@ -40,10 +40,12 @@ func (i *IdentityStub) UnmarshalJSON(data []byte) error { return nil } +// Id return the Identity identifier func (i *IdentityStub) Id() string { return i.id } +// HumanId return the Identity identifier truncated for human consumption func (i *IdentityStub) HumanId() string { return FormatHumanID(i.Id()) } |