diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-29 11:28:18 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-29 11:28:18 +0200 |
commit | 41e61a67b63e4d6c517005cf6f427115a664bdb5 (patch) | |
tree | 889066eab537b19ad41196b47d803a9d5a3f031e /bug/op_label_change.go | |
parent | 794d014fae9a78bd8664e6628a20902bd6dc767a (diff) | |
download | git-bug-41e61a67b63e4d6c517005cf6f427115a664bdb5.tar.gz |
bug: apply an operation with a pointer to the snapshot
Diffstat (limited to 'bug/op_label_change.go')
-rw-r--r-- | bug/op_label_change.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bug/op_label_change.go b/bug/op_label_change.go index c245d1a5..8909cf56 100644 --- a/bug/op_label_change.go +++ b/bug/op_label_change.go @@ -26,7 +26,7 @@ func (op LabelChangeOperation) Hash() (git.Hash, error) { } // Apply apply the operation -func (op LabelChangeOperation) Apply(snapshot Snapshot) Snapshot { +func (op LabelChangeOperation) Apply(snapshot *Snapshot) { // Add in the set AddLoop: for _, added := range op.Added { @@ -54,8 +54,6 @@ AddLoop: sort.Slice(snapshot.Labels, func(i, j int) bool { return string(snapshot.Labels[i]) < string(snapshot.Labels[j]) }) - - return snapshot } func (op LabelChangeOperation) Validate() error { |