From eedd16d5be62a0dfdb48410a44d67d367263e027 Mon Sep 17 00:00:00 2001 From: laurentsimon Date: Tue, 12 Apr 2022 14:14:49 +0000 Subject: [PATCH] linter --- e2e/branch_protection_test.go | 2 ++ e2e/e2e_suite_test.go | 6 ------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/e2e/branch_protection_test.go b/e2e/branch_protection_test.go index 3c1465fd..d8fa9362 100644 --- a/e2e/branch_protection_test.go +++ b/e2e/branch_protection_test.go @@ -143,6 +143,8 @@ var _ = Describe("E2E TEST GITHUB_TOKEN:"+checks.CheckBranchProtection, func() { } result := checks.BranchProtection(&req) + // There should be an error with the GITHUB_TOKEN, until it's supported + // byt GitHub. Expect(result.Error).ShouldNot(BeNil()) Expect(repoClient.Close()).Should(BeNil()) }) diff --git a/e2e/e2e_suite_test.go b/e2e/e2e_suite_test.go index 5f81dfbc..2581e274 100644 --- a/e2e/e2e_suite_test.go +++ b/e2e/e2e_suite_test.go @@ -45,12 +45,6 @@ const ( var tokType tokenType -func skipIfTokenIs(t tokenType, msg string) { - if tokType == t { - Skip(msg) - } -} - func skipIfTokenIsNot(t tokenType, msg string) { if tokType != t { Skip(msg)