Formatter: Remove whitespace-line remover

Removing lines only containing whitespace is superflous, such lines never get added to `tokenized_str`
This commit is contained in:
gregorni 2023-08-21 23:25:18 +02:00
parent babcc42ea2
commit 23d1f77b25

View file

@ -111,10 +111,6 @@ class Format:
# else: # else:
# current_line = current_line.strip() + " " # current_line = current_line.strip() + " "
tokenized_str = "\n".join(
["" if s.strip() == "" else s for s in tokenized_str.splitlines()]
)
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
return tokenized_str return tokenized_str