misc: reduced redundant code
This commit is contained in:
parent
3e7b6a5b12
commit
41e3c3f278
1 changed files with 3 additions and 6 deletions
|
@ -69,9 +69,6 @@ class Shortmute(commands.Cog):
|
||||||
return
|
return
|
||||||
if duration == 1 or duration == -1:
|
if duration == 1 or duration == -1:
|
||||||
readable_duration = f"{duration} minute"
|
readable_duration = f"{duration} minute"
|
||||||
passed_info.update({
|
|
||||||
"readable_duration": readable_duration
|
|
||||||
})
|
|
||||||
else:
|
else:
|
||||||
readable_duration = f"{duration} minutes"
|
readable_duration = f"{duration} minutes"
|
||||||
passed_info.update({
|
passed_info.update({
|
||||||
|
|
Loading…
Reference in a new issue