aboutsummaryrefslogtreecommitdiffstats
path: root/bug/op_label_change.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-10-01 11:37:17 +0200
committerMichael Muré <batolettre@gmail.com>2018-10-01 11:37:17 +0200
commit3402230a5537d95ce26bf7fa0d33330823a59f08 (patch)
treeabdc5a871e995446da40406754adc11c4e3befe7 /bug/op_label_change.go
parent7f86898ef9a8f9e866835ece3c9824a8edc58036 (diff)
downloadgit-bug-3402230a5537d95ce26bf7fa0d33330823a59f08.tar.gz
bug: use a value embedding for OpBase
Diffstat (limited to 'bug/op_label_change.go')
-rw-r--r--bug/op_label_change.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bug/op_label_change.go b/bug/op_label_change.go
index b025be81..006afd88 100644
--- a/bug/op_label_change.go
+++ b/bug/op_label_change.go
@@ -12,13 +12,13 @@ var _ Operation = &LabelChangeOperation{}
// LabelChangeOperation define a Bug operation to add or remove labels
type LabelChangeOperation struct {
- *OpBase
+ OpBase
Added []Label `json:"added"`
Removed []Label `json:"removed"`
}
func (op *LabelChangeOperation) base() *OpBase {
- return op.OpBase
+ return &op.OpBase
}
func (op *LabelChangeOperation) Hash() (git.Hash, error) {