From f76f48058979f4c7690b702a4fb31f245f9f7043 Mon Sep 17 00:00:00 2001 From: Shaun Dunning Date: Tue, 1 May 2018 22:19:42 -0400 Subject: [PATCH] Bug fix in upper-casing scopes --- jira/jira.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jira/jira.go b/jira/jira.go index e8021e9..3441560 100644 --- a/jira/jira.go +++ b/jira/jira.go @@ -94,8 +94,8 @@ func (js jwtSource) Token() (*oauth2.Token, error) { // Add scopes if they exist; If not, it defaults to app scopes if scopes := js.conf.Scopes; scopes != nil { upperScopes := make([]string, len(scopes)) - for _, k := range scopes { - upperScopes = append(upperScopes, strings.ToUpper(k)) + for i, k := range scopes { + upperScopes[i] = strings.ToUpper(k) } v.Set("scope", strings.Join(upperScopes, "+")) }