readabilite: .strip() first to save time
continuous-integration/drone/push Build is passing Details

master
pictuga 2021-11-15 21:54:07 +01:00
parent 1083f3ffbc
commit 6ec3fb47d1
1 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,8 @@ def count_words(string):
if string is None:
return 0
string = string.strip()
i = 0
count = 0