Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4d369ed

Browse files
Remove superfluous exception check
1 parent 2e0c92d commit 4d369ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎core/src/main/kotlin/com/tschuchort/compiletesting/KotlinCompilation.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ class KotlinCompilation : AbstractKotlinCompilation<K2JVMCompilerArguments>() {
580580
ExitCode.COMPILATION_ERROR
581581
}
582582
catch (e: Exception) {
583-
if(e is RuntimeException|| e isIllegalArgumentException) {
583+
if(e is RuntimeException) {
584584
printDiagnostics()
585585
error(e.toString())
586586
return ExitCode.INTERNAL_ERROR

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /