Skip to content

Commit eae979d

Browse files
committed
[cleanup] Reuse already defined object for same in IT sarif-2 test
1 parent c22bf75 commit eae979d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/it/sarif-2/verify.groovy

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2005-2023 the original author or authors.
2+
* Copyright 2005-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -30,7 +30,7 @@ def slurpedResult = new JsonSlurper().parse(spotbugSarifFile)
3030

3131
def results = slurpedResult.runs.results[0]
3232

33-
for (result in slurpedResult.runs.results[0]) {
33+
for (result in results) {
3434
for (loc in result.locations) {
3535
String location = normalizePath(loc.physicalLocation.artifactLocation.uri)
3636
//Making sure that the path was expanded

0 commit comments

Comments
 (0)