Skip to content

Commit f7f95eb

Browse files
committed
no op can be sync
1 parent c20620b commit f7f95eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils/decorators.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from utils.db import config
66

77

8-
async def no_op(*args, **kwargs):
8+
def no_op():
99
pass
1010

1111

@@ -16,7 +16,7 @@ async def wrapper(*args, **kwargs):
1616

1717
if not e:
1818
print(f'[SUSPICIOUS] No entities passed to {func.__name__} are, or contain a `Guild`!')
19-
return await no_op()
19+
return no_op()
2020

2121
if hasattr(e, 'guild'):
2222
e = e.guild
@@ -29,6 +29,6 @@ async def wrapper(*args, **kwargs):
2929
log_channel = next(c for c in e.text_channels if c.id == log_channel_id)
3030
return await func(*args, **kwargs, log_channel=log_channel)
3131

32-
return await no_op() # Guild has no config, or existing log channel.
32+
return no_op() # Guild has no config, or existing log channel.
3333

3434
return wrapper

0 commit comments

Comments
 (0)