Skip to content

Commit

Permalink
Comments update
Browse files Browse the repository at this point in the history
  • Loading branch information
Iurii Zaitsev committed Oct 14, 2024
1 parent 3faf4b4 commit 292bb28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class JavaTestCompiler(

logger.info { "Error message: '$errorMsg'" }
// create .class file path
val classFilePath = path.replace(".java", ".class")
val classFilePath = path.removeSuffix(".java") + ".class"

// check if .class file exists
return Pair(File(classFilePath).exists() && errorMsg.isBlank(), errorMsg)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class KotlinTestCompiler(

logger.info { "Error message: '$errorMsg'" }

val classFilePath = path.replace(".kt", ".class")
val classFilePath = path.removeSuffix(".kt") + ".class"

// check if .class file exists
return Pair(File(classFilePath).exists() && errorMsg.isBlank(), errorMsg)
Expand Down

0 comments on commit 292bb28

Please sign in to comment.