Skip to content
Prev Previous commit
removed extra line as per code review
  • Loading branch information
imkaka committed Oct 28, 2019
commit 9932e647aaaaf6edd3a407b75edd08a96132ef5c
1 change: 0 additions & 1 deletion git/refs/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ def entry_at(cls, filepath, index):
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())
Expand Down