From e542976bb7c486ce77d28dfc407c07f984338f58 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 19 Dec 2016 15:11:29 -0500 Subject: [PATCH] removed redundant else/return --- lib/ansible/module_utils/facts.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index 40b57c4c21c..92d1d5b6fa4 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -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