FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

removed Unnecessary “else” after “return” · gitpython-developers/GitPython@19a4df6 · GitHub

Repository navigation

Commit 19a4df6

Browse files
authored andcommitted
removed Unnecessary “else” after “return”
1 parent 248ad82 commit 19a4df6

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎git/util.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,9 +577,8 @@ def _from_string(cls, string):
577577
m = cls.name_only_regex.search(string)
578578
if m:
579579
return Actor(m.group(1), None)
580-
else:
581-
# assume best and use the whole string as name
582-
return Actor(string, None)
580+
# assume best and use the whole string as name
581+
return Actor(string, None)
583582
# END special case name
584583
# END handle name/email matching
585584

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL