From 3402230a5537d95ce26bf7fa0d33330823a59f08 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Mon, 1 Oct 2018 11:37:17 +0200 Subject: bug: use a value embedding for OpBase --- bug/op_add_comment.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bug/op_add_comment.go') diff --git a/bug/op_add_comment.go b/bug/op_add_comment.go index 156a8f71..3b2c2b76 100644 --- a/bug/op_add_comment.go +++ b/bug/op_add_comment.go @@ -11,14 +11,14 @@ var _ Operation = &AddCommentOperation{} // AddCommentOperation will add a new comment in the bug type AddCommentOperation struct { - *OpBase + OpBase Message string `json:"message"` // TODO: change for a map[string]util.hash to store the filename ? Files []git.Hash `json:"files"` } func (op *AddCommentOperation) base() *OpBase { - return op.OpBase + return &op.OpBase } func (op *AddCommentOperation) Hash() (git.Hash, error) { -- cgit