summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPratik Anurag <panurag247365@gmail.com>2019-10-15 19:51:55 +0530
committerSebastian Thiel <sebastian.thiel@icloud.com>2019-10-15 18:47:24 +0200
commit69d7a0c42cb63dab2f585fb47a08044379f1a549 (patch)
tree49e5b8aa03f7ca50c1751700c196c1361866c7dd
parent64b85ee4cbaeb38a6dc1637a5a1cf04e98031b4b (diff)
downloadgitpython-69d7a0c42cb63dab2f585fb47a08044379f1a549.tar.gz
removed Unnecessary “else” after “return”
-rw-r--r--git/refs/log.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/git/refs/log.py b/git/refs/log.py
index fc962680..e8c2d7ad 100644
--- a/git/refs/log.py
+++ b/git/refs/log.py
@@ -39,10 +39,9 @@ class RefLogEntry(tuple):
res = self.format()
if PY3:
return res
- else:
- # repr must return a string, which it will auto-encode from unicode using the default encoding.
- # This usually fails, so we encode ourselves
- return res.encode(defenc)
+ # repr must return a string, which it will auto-encode from unicode using the default encoding.
+ # This usually fails, so we encode ourselves
+ return res.encode(defenc)
def format(self):
""":return: a string suitable to be placed in a reflog file"""