1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-08-04 06:45:45 +02:00

misc: remove --force when calling qmlformat

It doesn't work with JS arrow function syntax.

Gitlab: #1059
Change-Id: I7da9c8ee7a2cb470aeb76cf4d1d0937e621eb221
This commit is contained in:
Andreas Traczyk 2023-04-13 16:40:04 -04:00 committed by Sébastien Blin
parent 3f56754f1c
commit 9e9b368deb

View file

@ -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):