Skip to content

Commit e3faf08

Browse files
authored
Merge pull request #21 from codefuse-ai/fix-cfamily-extract-error
[fix] fix cfamily extract error
2 parents 589f053 + 92ae2e0 commit e3faf08

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cli/extractor/extractor.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ def __init__(self):
3131

3232

3333
def cfamily_extractor_cmd(source_root, database, options):
34-
cmd = list()
35-
cmd += [str(Extractor.cfamily_extractor)]
36-
cmd += ["--compile-commands=", str(source_root)]
37-
cmd += ["--output-db-path=", str(database)]
38-
return cmd
34+
return [
35+
str(Extractor.cfamily_extractor),
36+
f"--compile-commands={source_root}",
37+
f"--output-db-path={database}"
38+
]
3939

4040

4141
def go_extractor_cmd(source_root, database, options):

0 commit comments

Comments
 (0)