Skip to content

Commit

Permalink
edit_common: remove unused function
Browse files Browse the repository at this point in the history
editGetLabels() wasn't being used anymore, after changing the way we
update labels using specific AddLabels and RemoveLabels struct members
from go-gitlab module.

Signed-off-by: Bruno Meneguele <[email protected]>
  • Loading branch information
bmeneg committed Jun 11, 2021
1 parent 71df609 commit 214d810
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions cmd/edit_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,6 @@ import (
"github.com/zaquestion/lab/internal/git"
)

// editGetLabels returns a string slice of labels based on the current
// labels and flags from the command line, and a bool indicating whether
// the labels have changed
func editGetLabels(idLabels []string, labels []string, unlabels []string) ([]string, bool, error) {
// add the new labels to the current labels, then remove the "unlabels"
labels = difference(union(idLabels, labels), unlabels)

return labels, !same(idLabels, labels), nil
}

// GetUpdateUsers returns an int slice of user IDs based on the
// current users and flags from the command line, and a bool
// indicating whether the users have changed
Expand Down

0 comments on commit 214d810

Please sign in to comment.