This commit is contained in:
laurentsimon 2022-05-23 14:24:39 -07:00 committed by GitHub
parent 1a2f08827f
commit 720a049464
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,10 +46,13 @@ func remdiationSetup(c *checker.CheckRequest) error {
remediationOnce.Do(func() { remediationOnce.Do(func() {
// Get the branch for remediation. // Get the branch for remediation.
b, err := c.RepoClient.GetDefaultBranch() b, err := c.RepoClient.GetDefaultBranch()
if err != nil && !errors.Is(err, clients.ErrUnsupportedFeature) { if err != nil {
remediationSetupErr = err if !errors.Is(err, clients.ErrUnsupportedFeature) {
remediationSetupErr = err
}
return return
} }
if b.Name != nil { if b.Name != nil {
remediationBranch = *b.Name remediationBranch = *b.Name
uri := c.Repo.URI() uri := c.Repo.URI()