Skip to content

Commit 2cce475

Browse files
committed
Remove unused global variable and make them local where needed
1 parent ad1a14d commit 2cce475

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/github_repository_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ import (
66
"testing"
77
)
88

9-
var githubOrganization, githubToken string
10-
119
func init() {
12-
githubOrganization = os.Getenv("GITHUB_ORGANIZATION")
13-
githubToken = os.Getenv("GITHUB_TOKEN")
10+
githubOrganization := os.Getenv("GITHUB_ORGANIZATION")
11+
githubToken := os.Getenv("GITHUB_TOKEN")
1412

1513
if githubOrganization == "" {
1614
panic("Please set a github organization using the GITHUB_ORGANIZATION environment variable.")

0 commit comments

Comments
 (0)