Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Lindamood committed Aug 21, 2022
1 parent dc8e67f commit 9e800fe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 1 addition & 0 deletions github_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
)

func newClientOrSkip(t *testing.T) GitHub {
readEnvFile(t, ".")
logger := zaptest.NewLogger(t)
gh, err := NewGQLClient(context.Background(), logger, nil)
if err != nil {
Expand Down
8 changes: 0 additions & 8 deletions helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,3 @@ func readEnvFile(t *testing.T, rootDir string) {
}
}
}

func envOrSkip(t *testing.T, env string) string {
body := os.Getenv(env)
if body == "" {
t.Skip(env + " not set, skipping test")
}
return body
}

0 comments on commit 9e800fe

Please sign in to comment.