aboutsummaryrefslogtreecommitdiffstats
path: root/bug/snapshot.go
diff options
context:
space:
mode:
Diffstat (limited to 'bug/snapshot.go')
-rw-r--r--bug/snapshot.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/bug/snapshot.go b/bug/snapshot.go
index df39ff46..28a92961 100644
--- a/bug/snapshot.go
+++ b/bug/snapshot.go
@@ -61,12 +61,7 @@ func (snap *Snapshot) LastEditUnix() int64 {
// SearchTimelineItem will search in the timeline for an item matching the given hash
func (snap *Snapshot) SearchTimelineItem(hash git.Hash) (TimelineItem, error) {
for i := range snap.Timeline {
- h, err := snap.Timeline[i].Hash()
- if err != nil {
- return nil, err
- }
-
- if h == hash {
+ if snap.Timeline[i].Hash() == hash {
return snap.Timeline[i], nil
}
}