Skip to content

Commit

Permalink
Merge pull request #757 from hazendaz/thorough-cleanup
Browse files Browse the repository at this point in the history
[cleanup] Reuse already defined object for same in IT sarif-2 test
  • Loading branch information
hazendaz authored Jan 15, 2024
2 parents c22bf75 + eae979d commit c0b3ae8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/it/sarif-2/verify.groovy
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2005-2023 the original author or authors.
* Copyright 2005-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -30,7 +30,7 @@ def slurpedResult = new JsonSlurper().parse(spotbugSarifFile)

def results = slurpedResult.runs.results[0]

for (result in slurpedResult.runs.results[0]) {
for (result in results) {
for (loc in result.locations) {
String location = normalizePath(loc.physicalLocation.artifactLocation.uri)
//Making sure that the path was expanded
Expand Down

0 comments on commit c0b3ae8

Please sign in to comment.