mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-04-16 15:52:18 +00:00
Do not check script discovery file extension
it is optional (so far), so this check was incorrect. #KT-44117 fixed
This commit is contained in:
@@ -50,6 +50,5 @@ class ScriptTemplatesClassRootsIndex :
|
||||
val parent = file.parent ?: return false
|
||||
return parent.isDirectory
|
||||
&& parent.path.endsWith(suffix)
|
||||
&& file.path.endsWith(SCRIPT_DEFINITION_MARKERS_EXTENSION_WITH_DOT)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user