summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnil Khatri <anil.soccer.khatri@gmail.com>2019-10-28 15:34:09 +0530
committerAnil Khatri <anil.soccer.khatri@gmail.com>2019-10-28 15:34:09 +0530
commit9932e647aaaaf6edd3a407b75edd08a96132ef5c (patch)
tree2c4c13ec38c04d95d5c855d2732b5474e31db381
parent225529c8baaa6ee65b1b23fc1d79b99bf49ebfb1 (diff)
downloadgitpython-9932e647aaaaf6edd3a407b75edd08a96132ef5c.tar.gz
removed extra line as per code review
-rw-r--r--git/refs/log.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/git/refs/log.py b/git/refs/log.py
index ab5d75a3..432232ac 100644
--- a/git/refs/log.py
+++ b/git/refs/log.py
@@ -216,7 +216,6 @@ class RefLog(list, Serializable):
all other lines. Nonetheless, the whole file has to be read if
the index is negative
"""
- fp = open(filepath, 'rb')
with open(filepath, 'rb') as fp:
if index < 0:
return RefLogEntry.from_line(fp.readlines()[index].strip())