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() {
// Get the branch for remediation.
b, err := c.RepoClient.GetDefaultBranch()
if err != nil && !errors.Is(err, clients.ErrUnsupportedFeature) {
remediationSetupErr = err
if err != nil {
if !errors.Is(err, clients.ErrUnsupportedFeature) {
remediationSetupErr = err
}
return
}
if b.Name != nil {
remediationBranch = *b.Name
uri := c.Repo.URI()