mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-04 01:33:09 +00:00
removed redundant else/return
This commit is contained in:
@@ -109,10 +109,9 @@ def timeout(seconds=None, error_message="Timer expired"):
|
||||
func = seconds
|
||||
seconds = 10
|
||||
return decorator(func)
|
||||
else:
|
||||
# If we were called as @timeout([...]) then python itself will take
|
||||
# care of wrapping the inner decorator around the function
|
||||
return decorator
|
||||
|
||||
# If we were called as @timeout([...]) then python itself will take
|
||||
# care of wrapping the inner decorator around the function
|
||||
|
||||
return decorator
|
||||
|
||||
|
||||
Reference in New Issue
Block a user