Skip to content

Commit a403edb

Browse files
committed
refactor: TT-185 improve function remove_white_spaces
1 parent 5358c40 commit a403edb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

utils/repository.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@ def create_sql_in_condition(field, values):
1818
def remove_white_spaces(string: str):
1919
from re import sub
2020

21-
string = string.replace("\n", "")
22-
return sub("[\s]+", ' ', string).rstrip().lstrip()
21+
return sub('[\s]+', ' ', string).strip()

0 commit comments

Comments
 (0)