Skip to content

Commit 196eaa5

Browse files
lint: fix detekt violations
1 parent 550308a commit 196eaa5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bytecode/scanner/src/main/kotlin/com/legacycode/eureka/MethodDescriptor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ value class MethodDescriptor(private val descriptor: String) {
5959
isArray = true
6060
index++
6161
} else {
62-
throw IllegalArgumentException("Unknown type: $tokenChar")
62+
require(false) { "Unknown type: $tokenChar" }
6363
}
6464
}
6565

cli/src/test/kotlin/com/legacycode/eureka/cli/dev/diff/DiffTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
package com.legacycode.eureka.cli.dev.diff
44

5-
import com.legacycode.eureka.cli.dev.diff.EdgeBundlingGraphExtension.*
5+
import com.legacycode.eureka.cli.dev.diff.EdgeBundlingGraphExtension.Graph
66
import com.legacycode.eureka.viz.edgebundling.EdgeBundlingGraph
77
import org.approvaltests.Approvals
88
import org.junit.jupiter.api.Test

0 commit comments

Comments
 (0)