diff options
author | Michael Muré <batolettre@gmail.com> | 2018-08-13 15:28:16 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-08-13 15:28:47 +0200 |
commit | df144e727a858ed07e3c9328d91efe052c4781e1 (patch) | |
tree | bfbfeea70f97ab3d4274c8e5add2c3aeeac1423b /bug/operations/label_change.go | |
parent | f2f779c5a8b4efe67317bbffe110a9880c1f529a (diff) | |
download | git-bug-df144e727a858ed07e3c9328d91efe052c4781e1.tar.gz |
fix some linting trouble
Diffstat (limited to 'bug/operations/label_change.go')
-rw-r--r-- | bug/operations/label_change.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bug/operations/label_change.go b/bug/operations/label_change.go index 85bae595..8f608dbc 100644 --- a/bug/operations/label_change.go +++ b/bug/operations/label_change.go @@ -9,16 +9,16 @@ import ( "github.com/MichaelMure/git-bug/bug" ) -// LabelChangeOperation will add or remove a set of labels - var _ bug.Operation = LabelChangeOperation{} +// LabelChangeOperation define a Bug operation to add or remove labels type LabelChangeOperation struct { bug.OpBase Added []bug.Label Removed []bug.Label } +// Apply apply the operation func (op LabelChangeOperation) Apply(snapshot bug.Snapshot) bug.Snapshot { // Add in the set AddLoop: @@ -59,7 +59,7 @@ func NewLabelChangeOperation(author bug.Person, added, removed []bug.Label) Labe } } -// Convenience function to apply the operation +// ChangeLabels is a convenience function to apply the operation func ChangeLabels(out io.Writer, b *bug.Bug, author bug.Person, add, remove []string) error { var added, removed []bug.Label |