diff options
Diffstat (limited to 'bug/snapshot.go')
-rw-r--r-- | bug/snapshot.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bug/snapshot.go b/bug/snapshot.go index a937200f..39366c6d 100644 --- a/bug/snapshot.go +++ b/bug/snapshot.go @@ -66,9 +66,9 @@ func (snap *Snapshot) SearchTimelineItem(id entity.Id) (TimelineItem, error) { } // SearchComment will search for a comment matching the given hash -func (snap *Snapshot) SearchComment(id string) (*Comment, error) { +func (snap *Snapshot) SearchComment(id entity.Id) (*Comment, error) { for _, c := range snap.Comments { - if c.id.String() == id { + if c.id == id { return &c, nil } } |