diff options
Diffstat (limited to 'cache/bug_excerpt.go')
-rw-r--r-- | cache/bug_excerpt.go | 10 |
1 files changed, 5 insertions, 5 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 */ |