diff options
Diffstat (limited to 'bug/op_add_comment.go')
-rw-r--r-- | bug/op_add_comment.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bug/op_add_comment.go b/bug/op_add_comment.go index 300609fb..e5622073 100644 --- a/bug/op_add_comment.go +++ b/bug/op_add_comment.go @@ -26,7 +26,7 @@ func (op AddCommentOperation) Hash() (git.Hash, error) { return hashOperation(op) } -func (op AddCommentOperation) Apply(snapshot Snapshot) Snapshot { +func (op AddCommentOperation) Apply(snapshot *Snapshot) { comment := Comment{ Message: op.Message, Author: op.Author, @@ -35,8 +35,6 @@ func (op AddCommentOperation) Apply(snapshot Snapshot) Snapshot { } snapshot.Comments = append(snapshot.Comments, comment) - - return snapshot } func (op AddCommentOperation) GetFiles() []git.Hash { |