From 395b6eb1c2de3e229d31d46f8d2afdb3f1d59fab Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Fri, 11 Aug 2023 14:50:45 +0200 Subject: WIP --- entities/bug/snapshot.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'entities/bug/snapshot.go') diff --git a/entities/bug/snapshot.go b/entities/bug/snapshot.go index 9dbc7862..32baf42c 100644 --- a/entities/bug/snapshot.go +++ b/entities/bug/snapshot.go @@ -9,7 +9,7 @@ import ( "github.com/MichaelMure/git-bug/entity" ) -var _ entity.Snapshot = &Snapshot{} +// var _ entity.Snapshot = &Snapshot{} // Snapshot is a compiled form of the Bug data structure used for storage and merge type Snapshot struct { @@ -26,7 +26,7 @@ type Snapshot struct { Timeline []TimelineItem - Operations []entity.Operation + Operations []Operation } // Id returns the Bug identifier @@ -38,11 +38,11 @@ func (snap *Snapshot) Id() entity.Id { return snap.id } -func (snap *Snapshot) AllOperations() []entity.Operation { +func (snap *Snapshot) AllOperations() []Operation { return snap.Operations } -func (snap *Snapshot) AppendOperation(op entity.Operation) { +func (snap *Snapshot) AppendOperation(op Operation) { snap.Operations = append(snap.Operations, op) } -- cgit v1.2.3