Skip to content

Commit

Permalink
hotfix: prioritize MainModuleExecutor for scala apps
Browse files Browse the repository at this point in the history
  • Loading branch information
inuur committed Dec 9, 2022
1 parent 380bbc0 commit 4085fe7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/org/hyperskill/hstest/common/FileUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ public static boolean hasJavaSolution(String folder) {

for (var src : walkUserFiles(srcFolder)) {
for (var file : src.files) {
if (file.getName().endsWith(".java") || file.getName().endsWith(".kt")) {
if (file.getName().endsWith(".java") ||
file.getName().endsWith(".kt") ||
file.getName().endsWith(".scala")
) {
return true;
}
}
Expand Down

0 comments on commit 4085fe7

Please sign in to comment.