removed redundant else/return
This commit is contained in:
parent
cb55e74487
commit
e542976bb7
1 changed files with 3 additions and 4 deletions
|
@ -109,10 +109,9 @@ def timeout(seconds=None, error_message="Timer expired"):
|
||||||
func = seconds
|
func = seconds
|
||||||
seconds = 10
|
seconds = 10
|
||||||
return decorator(func)
|
return decorator(func)
|
||||||
else:
|
|
||||||
# If we were called as @timeout([...]) then python itself will take
|
# If we were called as @timeout([...]) then python itself will take
|
||||||
# care of wrapping the inner decorator around the function
|
# care of wrapping the inner decorator around the function
|
||||||
return decorator
|
|
||||||
|
|
||||||
return decorator
|
return decorator
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue