Skip to content
Snippets Groups Projects
Commit 9e9b368d authored by Andreas Traczyk's avatar Andreas Traczyk Committed by Sébastien Blin
Browse files

misc: remove `--force` when calling qmlformat

It doesn't work with JS arrow function syntax.

Gitlab: #1059
Change-Id: I7da9c8ee7a2cb470aeb76cf4d1d0937e621eb221
parent 3f56754f
No related branches found
No related tags found
No related merge requests found
......@@ -69,8 +69,7 @@ def qml_format_files(files):
for filename in files:
if os.path.isfile(filename):
print(f"Formatting: {filename}", end='\r')
extra_args = ['--force']
subprocess.call([QMLFORMAT, '--inplace', filename] + extra_args)
subprocess.call([QMLFORMAT, '--inplace', filename])
# This may generate a backup file (ending with ~), so delete it.
backup_file = filename + "~"
if os.path.isfile(backup_file):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment