Skip to content

Commit 69d7a0c

Browse files
pratik-anuragByron
authored andcommitted
removed Unnecessary “else” after “return”
1 parent 64b85ee commit 69d7a0c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

git/refs/log.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,9 @@ def __repr__(self):
3939
res = self.format()
4040
if PY3:
4141
return res
42-
else:
43-
# repr must return a string, which it will auto-encode from unicode using the default encoding.
44-
# This usually fails, so we encode ourselves
45-
return res.encode(defenc)
42+
# repr must return a string, which it will auto-encode from unicode using the default encoding.
43+
# This usually fails, so we encode ourselves
44+
return res.encode(defenc)
4645

4746
def format(self):
4847
""":return: a string suitable to be placed in a reflog file"""

0 commit comments

Comments
 (0)