fix: Improve get caller file path util (#7974)
* fix: Improve get caller file path util * improve compatibility * update comment --------- Co-authored-by: Riqwan Thamir <rmthamir@gmail.com>
This commit is contained in:
co-authored by
Riqwan Thamir
parent
de0a9c14ab
commit
1393f51046
@@ -69,7 +69,6 @@ export function defineJoinerConfig(
|
||||
loadedModels = []
|
||||
|
||||
let index = 1
|
||||
const maxSearchIndex = 6
|
||||
|
||||
while (true) {
|
||||
++index
|
||||
@@ -101,7 +100,7 @@ export function defineJoinerConfig(
|
||||
|
||||
loadedModels = loadModels(basePath)
|
||||
|
||||
if (index === maxSearchIndex || loadedModels.length) {
|
||||
if (loadedModels.length) {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user