aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/core
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-11-10 15:50:56 +0100
committerMichael Muré <batolettre@gmail.com>2019-11-10 15:50:56 +0100
commitf8cf3fea035d7f0ad0287166c3a5016777acf5ad (patch)
treee077b7a22a966ba03077c76bcb35373feb5e90c5 /bridge/core
parente2445edcb99ed0aa7fcd40fe7484d71e73367334 (diff)
downloadgit-bug-f8cf3fea035d7f0ad0287166c3a5016777acf5ad.tar.gz
cli: add bridge token show
Diffstat (limited to 'bridge/core')
-rw-r--r--bridge/core/token.go2
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) {