summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPratik Anurag <panurag247365@gmail.com>2019-10-15 19:58:07 +0530
committerSebastian Thiel <sebastian.thiel@icloud.com>2019-10-15 18:47:24 +0200
commitf5eb90461917afe04f31abedae894e63f81f827e (patch)
tree9b86b16144d88cbfad344389397e3f9747dc62e0
parent19a4df655ae2ee91a658c249f5abcbe0e208fa72 (diff)
downloadgitpython-f5eb90461917afe04f31abedae894e63f81f827e.tar.gz
removed Unnecessary “else” after “return”
-rw-r--r--git/index/fun.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/git/index/fun.py b/git/index/fun.py
index f0091a3a..5906a358 100644
--- a/git/index/fun.py
+++ b/git/index/fun.py
@@ -173,8 +173,7 @@ def entry_key(*entry):
:param entry: One instance of type BaseIndexEntry or the path and the stage"""
if len(entry) == 1:
return (entry[0].path, entry[0].stage)
- else:
- return tuple(entry)
+ return tuple(entry)
# END handle entry