File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -241,8 +241,7 @@ data class ScannerRun(
241241 }
242242 }
243243
244- @Suppress(" UnsafeCallOnNullableType" )
245- val packageProvenance = resolutionResult.packageProvenance!!
244+ val packageProvenance = checkNotNull(resolutionResult.packageProvenance)
246245
247246 val scanResultsByPath = resolutionResult.getKnownProvenancesWithoutVcsPath().mapValues { (_, provenance) ->
248247 scanResultsByProvenance[provenance].orEmpty()
@@ -265,8 +264,7 @@ data class ScannerRun(
265264 it.packageProvenanceResolutionIssue == null && it.nestedProvenanceResolutionIssue == null
266265 } ? : return null
267266
268- @Suppress(" UnsafeCallOnNullableType" )
269- val packageProvenance = resolutionResult.packageProvenance!!
267+ val packageProvenance = checkNotNull(resolutionResult.packageProvenance)
270268
271269 val fileListsByPath = resolutionResult.getKnownProvenancesWithoutVcsPath().mapValues { (_, provenance) ->
272270 // If there was an issue creating at least one file list, then return null instead of an incomplete file
You can’t perform that action at this time.
0 commit comments