Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenwang9867 committed Jul 18, 2022
1 parent 3d00c1a commit ad88fe5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dependencydiff/dependencydiff.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ func getScorecardCheckResults(dCtx *dependencydiffContext) error {
// TODO (#2063): use the BigQuery dataset to supplement null source repo URLs to fetch the Scorecard results for them.
if d.SourceRepository != nil && d.ChangeType != nil {
// Run the checks on all types if (1) the type is found in changeTypesToCheck or (2) no types are specified.
if dCtx.changeTypesToCheck[*d.ChangeType] || (dCtx.changeTypesToCheck == nil || len(dCtx.changeTypesToCheck) == 0) {
noTypesGiven := dCtx.changeTypesToCheck == nil || len(dCtx.changeTypesToCheck) == 0
if dCtx.changeTypesToCheck[*d.ChangeType] || noTypesGiven {
// Initialize the repo and client(s) corresponding to the checks to run.
err = initRepoAndClientByChecks(dCtx, *d.SourceRepository)
if err != nil {
Expand Down

0 comments on commit ad88fe5

Please sign in to comment.