summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPratik Anurag <panurag247365@gmail.com>2019-10-15 19:57:32 +0530
committerSebastian Thiel <sebastian.thiel@icloud.com>2019-10-15 18:47:24 +0200
commit19a4df655ae2ee91a658c249f5abcbe0e208fa72 (patch)
treed0228538f8ff0be914f4b28cbf660b411860688a
parent248ad822e2a649d20582631029e788fb09f05070 (diff)
downloadgitpython-19a4df655ae2ee91a658c249f5abcbe0e208fa72.tar.gz
removed Unnecessary “else” after “return”
-rw-r--r--git/util.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/git/util.py b/git/util.py
index c395afd2..99600e37 100644
--- a/git/util.py
+++ b/git/util.py
@@ -577,9 +577,8 @@ class Actor(object):
m = cls.name_only_regex.search(string)
if m:
return Actor(m.group(1), None)
- else:
- # assume best and use the whole string as name
- return Actor(string, None)
+ # assume best and use the whole string as name
+ return Actor(string, None)
# END special case name
# END handle name/email matching