diff options
author | Michael Muré <batolettre@gmail.com> | 2021-04-09 13:07:45 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2021-04-09 13:07:45 +0200 |
commit | 10a80f188861157b5f58bb700fe7f1c84bb4da95 (patch) | |
tree | b6c977c4687d556b42a5b62643c6b2d113c789af /bridge/github/export.go | |
parent | 1520f678f7a2bc6e01d9b01df5ce49f2f46be7d7 (diff) | |
download | git-bug-10a80f188861157b5f58bb700fe7f1c84bb4da95.tar.gz |
github: minor cleanups
Diffstat (limited to 'bridge/github/export.go')
-rw-r--r-- | bridge/github/export.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bridge/github/export.go b/bridge/github/export.go index 1a59fbb3..264f2a23 100644 --- a/bridge/github/export.go +++ b/bridge/github/export.go @@ -504,7 +504,7 @@ func (ge *githubExporter) cacheGithubLabels(ctx context.Context, gc *githubv4.Cl return nil } -func (ge *githubExporter) getLabelID(gc *githubv4.Client, label string) (string, error) { +func (ge *githubExporter) getLabelID(label string) (string, error) { label = strings.ToLower(label) for cachedLabel, ID := range ge.cachedLabels { if label == strings.ToLower(cachedLabel) { @@ -598,7 +598,7 @@ func (ge *githubExporter) createGithubLabelV4(gc *githubv4.Client, label, labelC func (ge *githubExporter) getOrCreateGithubLabelID(ctx context.Context, gc *githubv4.Client, repositoryID string, label bug.Label) (string, error) { // try to get label id from cache - labelID, err := ge.getLabelID(gc, string(label)) + labelID, err := ge.getLabelID(string(label)) if err == nil { return labelID, nil } |