diff options
Diffstat (limited to 'cache')
-rw-r--r-- | cache/bug_excerpt.go | 10 | ||||
-rw-r--r-- | cache/filter.go | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/cache/bug_excerpt.go b/cache/bug_excerpt.go index e39c8310..55518077 100644 --- a/cache/bug_excerpt.go +++ b/cache/bug_excerpt.go @@ -8,6 +8,11 @@ import ( "github.com/MichaelMure/git-bug/util/lamport" ) +// Package initialisation used to register the type for (de)serialization +func init() { + gob.Register(BugExcerpt{}) +} + // BugExcerpt hold a subset of the bug values to be able to sort and filter bugs // efficiently without having to read and compile each raw bugs. type BugExcerpt struct { @@ -63,11 +68,6 @@ func NewBugExcerpt(b bug.Interface, snap *bug.Snapshot) *BugExcerpt { return e } -// Package initialisation used to register the type for (de)serialization -func init() { - gob.Register(BugExcerpt{}) -} - /* * Sorting */ diff --git a/cache/filter.go b/cache/filter.go index 3cbc132a..022a8ff2 100644 --- a/cache/filter.go +++ b/cache/filter.go @@ -6,7 +6,7 @@ import ( "github.com/MichaelMure/git-bug/bug" ) -// Filter is a functor that match a subset of bugs +// Filter is a predicate that match a subset of bugs type Filter func(repoCache *RepoCache, excerpt *BugExcerpt) bool // StatusFilter return a Filter that match a bug status |