aboutsummaryrefslogtreecommitdiffstats
path: root/bug/op_create.go
diff options
context:
space:
mode:
Diffstat (limited to 'bug/op_create.go')
-rw-r--r--bug/op_create.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/bug/op_create.go b/bug/op_create.go
index c65b3bd8..70ca7242 100644
--- a/bug/op_create.go
+++ b/bug/op_create.go
@@ -27,7 +27,7 @@ func (op CreateOperation) Hash() (git.Hash, error) {
return hashOperation(op)
}
-func (op CreateOperation) Apply(snapshot Snapshot) Snapshot {
+func (op CreateOperation) Apply(snapshot *Snapshot) {
snapshot.Title = op.Title
snapshot.Comments = []Comment{
{
@@ -38,7 +38,6 @@ func (op CreateOperation) Apply(snapshot Snapshot) Snapshot {
}
snapshot.Author = op.Author
snapshot.CreatedAt = op.Time()
- return snapshot
}
func (op CreateOperation) GetFiles() []git.Hash {