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.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/bug/op_create.go b/bug/op_create.go
index 1d01020c..9c972195 100644
--- a/bug/op_create.go
+++ b/bug/op_create.go
@@ -55,9 +55,8 @@ func (op *CreateOperation) Apply(snapshot *Snapshot) {
snapshot.Title = op.Title
- commentId := entity.CombineIds(snapshot.Id(), op.Id())
comment := Comment{
- id: commentId,
+ id: entity.CombineIds(snapshot.Id(), op.Id()),
Message: op.Message,
Author: op.Author_,
UnixTime: timestamp.Timestamp(op.UnixTime),
@@ -69,7 +68,7 @@ func (op *CreateOperation) Apply(snapshot *Snapshot) {
snapshot.Timeline = []TimelineItem{
&CreateTimelineItem{
- CommentTimelineItem: NewCommentTimelineItem(commentId, comment),
+ CommentTimelineItem: NewCommentTimelineItem(comment),
},
}
}