mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-11 00:45:36 +03:00
linter
This commit is contained in:
parent
6a48f174ce
commit
eedd16d5be
@ -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())
|
||||
})
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user