diff options
Diffstat (limited to 'bug/snapshot.go')
-rw-r--r-- | bug/snapshot.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bug/snapshot.go b/bug/snapshot.go index 41d96aa2..9229e7a1 100644 --- a/bug/snapshot.go +++ b/bug/snapshot.go @@ -33,6 +33,9 @@ func (snap Snapshot) Summary() string { } func (snap Snapshot) LastEdit() time.Time { + if len(snap.Comments) == 0 { + return time.Unix(0, 0) + } lastEditTimestamp := snap.Comments[len(snap.Comments)-1].Time return time.Unix(lastEditTimestamp, 0) } |