summaryrefslogtreecommitdiffstatshomepage
path: root/entities/bug/snapshot.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2023-08-11 14:50:45 +0200
committerMichael Muré <batolettre@gmail.com>2023-08-11 14:50:45 +0200
commit395b6eb1c2de3e229d31d46f8d2afdb3f1d59fab (patch)
tree6a42d31f00188622912325630e5d14d7123fad79 /entities/bug/snapshot.go
parentf0167a1d6068d22af5ffff260e2848f7c14a71b3 (diff)
downloadgit-bug-395b6eb1c2de3e229d31d46f8d2afdb3f1d59fab.tar.gz
git-bug-395b6eb1c2de3e229d31d46f8d2afdb3f1d59fab.zip
Diffstat (limited to 'entities/bug/snapshot.go')
-rw-r--r--entities/bug/snapshot.go8
1 files changed, 4 insertions, 4 deletions
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)
}