[misc] Simplify return
A variable is only used for return and can thus be simplified
This commit is contained in:
parent
8705fe0b1f
commit
d0fc51fd7e
|
@ -133,8 +133,7 @@ class TwitterBot(Censor):
|
||||||
for index, character in enumerate(text):
|
for index, character in enumerate(text):
|
||||||
if index not in remove_indices:
|
if index not in remove_indices:
|
||||||
filtered_text += character
|
filtered_text += character
|
||||||
filtered_text = filtered_text.strip()
|
return filtered_text.strip()
|
||||||
return filtered_text
|
|
||||||
|
|
||||||
async def push(self):
|
async def push(self):
|
||||||
while True:
|
while True:
|
||||||
|
|
Loading…
Reference in a new issue