aboutsummaryrefslogtreecommitdiffstats
path: root/bug/bug.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-29 11:28:18 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-29 11:28:18 +0200
commit41e61a67b63e4d6c517005cf6f427115a664bdb5 (patch)
tree889066eab537b19ad41196b47d803a9d5a3f031e /bug/bug.go
parent794d014fae9a78bd8664e6628a20902bd6dc767a (diff)
downloadgit-bug-41e61a67b63e4d6c517005cf6f427115a664bdb5.tar.gz
bug: apply an operation with a pointer to the snapshot
Diffstat (limited to 'bug/bug.go')
-rw-r--r--bug/bug.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bug/bug.go b/bug/bug.go
index b252b176..f29c04b4 100644
--- a/bug/bug.go
+++ b/bug/bug.go
@@ -641,7 +641,7 @@ func (bug *Bug) Compile() Snapshot {
for it.Next() {
op := it.Value()
- snap = op.Apply(snap)
+ op.Apply(&snap)
snap.Operations = append(snap.Operations, op)
}