Skip to content

Commit 4724cda

Browse files
committed
docs(scancode): Remove comments about missing data properties
Properties to be missing in JSON is the obvious reason to assign default values. However, keep the comments for properties that might be explicitly set to `null`. Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent 6d06fcc commit 4724cda

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugins/scanners/scancode/src/main/kotlin/ScanCodeResultModel.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ sealed interface LicenseEntry {
168168
override val startLine: Int,
169169
override val endLine: Int,
170170
override val licenseExpression: String,
171-
val spdxLicenseExpression: String? = null, // This might be missing in JSON.
172-
val fromFile: String? = null, // This might be missing in JSON.
171+
val spdxLicenseExpression: String? = null,
172+
val fromFile: String? = null,
173173
override val matchedText: String? = null
174174
) : LicenseEntry
175175

@@ -179,8 +179,8 @@ sealed interface LicenseEntry {
179179
override val startLine: Int,
180180
override val endLine: Int,
181181
override val licenseExpression: String,
182-
val licenseExpressionSpdx: String? = null, // This might be missing in JSON.
183-
val fromFile: String? = null, // This might be missing in JSON.
182+
val licenseExpressionSpdx: String? = null,
183+
val fromFile: String? = null,
184184
override val matchedText: String? = null
185185
) : LicenseEntry
186186
}

0 commit comments

Comments
 (0)