mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Formatter: combine two if conditions into one line
This commit is contained in:
parent
97f07b3ca8
commit
47b7ee8986
1 changed files with 2 additions and 3 deletions
|
@ -74,8 +74,7 @@ class Format:
|
||||||
|
|
||||||
last_not_whitespace = item
|
last_not_whitespace = item
|
||||||
|
|
||||||
else:
|
elif tokenized_str == tokenized_str.strip():
|
||||||
if tokenized_str == tokenized_str.strip():
|
|
||||||
tokenized_str += " "
|
tokenized_str += " "
|
||||||
|
|
||||||
print(tokenized_str) # TODO: Remove this when the MR is ready to be merged
|
print(tokenized_str) # TODO: Remove this when the MR is ready to be merged
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue