From df144e727a858ed07e3c9328d91efe052c4781e1 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Mon, 13 Aug 2018 15:28:16 +0200 Subject: fix some linting trouble --- bug/operations/label_change.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bug/operations/label_change.go') 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 -- cgit