Fix badging warning by suppressing it

This commit is contained in:
Wolf-Martell Montwé 2024-01-19 16:48:00 +01:00
parent 7223c0b67a
commit 487ac87731
No known key found for this signature in database
GPG key ID: 6D45B21512ACBF72

View file

@ -161,6 +161,7 @@ abstract class CheckBadgingTask : DefaultTask() {
generatedBadgingContent.lines(),
).filter { row -> row.tag != DiffRow.Tag.EQUAL }
.joinToString("\n") { row ->
@Suppress("WHEN_ENUM_CAN_BE_NULL_IN_JAVA")
when (row.tag) {
DiffRow.Tag.INSERT -> {
"+ ${row.newLine}"