Skip to content

Commit

Permalink
[jrubyscripting] Filter files that are added to the watch list (openh…
Browse files Browse the repository at this point in the history
…ab#14590)

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
  • Loading branch information
jimtng committed Mar 21, 2023
1 parent 31454ac commit 72254b8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ protected Optional<String> getScriptType(Path scriptFilePath) {
if (scriptEngineFactory.isFileInGemHome(path) || scriptEngineFactory.isFileInLoadPath(path)) {
return Optional.empty();
}
return super.getScriptType(scriptFilePath);

return super.getScriptType(scriptFilePath).filter(type -> scriptEngineFactory.getScriptTypes().contains(type));
}
}

0 comments on commit 72254b8

Please sign in to comment.