From 9932e647aaaaf6edd3a407b75edd08a96132ef5c Mon Sep 17 00:00:00 2001 From: Anil Khatri Date: Mon, 28 Oct 2019 15:34:09 +0530 Subject: removed extra line as per code review --- git/refs/log.py | 1 - 1 file changed, 1 deletion(-) (limited to 'git/refs/log.py') 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()) -- cgit v1.2.1