diff options
author | Michael Muré <batolettre@gmail.com> | 2019-11-10 15:50:56 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2019-11-10 15:50:56 +0100 |
commit | f8cf3fea035d7f0ad0287166c3a5016777acf5ad (patch) | |
tree | e077b7a22a966ba03077c76bcb35373feb5e90c5 /bridge/core | |
parent | e2445edcb99ed0aa7fcd40fe7484d71e73367334 (diff) | |
download | git-bug-f8cf3fea035d7f0ad0287166c3a5016777acf5ad.tar.gz |
cli: add bridge token show
Diffstat (limited to 'bridge/core')
-rw-r--r-- | bridge/core/token.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/core/token.go b/bridge/core/token.go index b9d68c0b..2ceabca2 100644 --- a/bridge/core/token.go +++ b/bridge/core/token.go @@ -55,7 +55,7 @@ func (t *Token) Validate() error { if t.Target == "" { return fmt.Errorf("missing target") } - if t.CreateTime.IsZero() { + if t.CreateTime.IsZero() || t.CreateTime.Equal(time.Time{}) { return fmt.Errorf("missing creation time") } if !TargetExist(t.Target) { |