Skip to content

Commit

Permalink
[cleanup] Reuse already defined object for same in IT sarif-2 test
Browse files Browse the repository at this point in the history
  • Loading branch information
hazendaz committed Jan 15, 2024
1 parent c22bf75 commit eae979d
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 eae979d

Please sign in to comment.