mirror of
https://github.com/langgenius/dify.git
synced 2026-11-13 14:51:39 +08:00
fix: oxlint no unused expressions (#29675)
Co-authored-by: daniel <daniel@example.com>
This commit is contained in:
1 parent
b7649f61f8
commit
c2f2be6b08
8 files changed
+16
-8
No files matched your search
@@ -10,7 +10,7 @@ export const extractFunctionParams = (code: string, language: CodeLanguage) => {
|
||||
[CodeLanguage.python3]: /def\s+main\s*\((.*?)\)/,
|
||||
[CodeLanguage.javascript]: /function\s+main\s*\((.*?)\)/,
|
||||
}
|
||||
const match = code.match(patterns[language])
|
||||
const match = patterns[language].exec(code)
|
||||
const params: string[] = []
|
||||
|
||||
if (match?.[1]) {
|
||||
|
||||
Reference in new issue
Block a user