fix: Requester.addFunction()
This commit is contained in:
@@ -43,15 +43,10 @@ class Requester(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun addFunction(functionsDirectory: File): Requester {
|
fun addFunction(functionsDirectory: File): Requester {
|
||||||
functionsDirectory.walk().filter {
|
functionsDirectory.walk()
|
||||||
it.isDirectory
|
.filter { it.isFile && it.extension == "sql" }
|
||||||
}.forEach { directory ->
|
.forEach {
|
||||||
directory.walk().filter {
|
addFunction(it.readText())
|
||||||
it.isFile
|
|
||||||
}.forEach { file ->
|
|
||||||
val fileContent = file.readText()
|
|
||||||
addFunction(fileContent)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user