From 8350bd5a434956d70959edeebf4f15f57bbe9157 Mon Sep 17 00:00:00 2001 From: sminux Date: Sat, 1 Nov 2025 09:16:41 +0300 Subject: [PATCH] Update pack.py - SonarQube issues fix #129 --- gitdb/pack.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/gitdb/pack.py b/gitdb/pack.py index e559e11..2e07079 100644 --- a/gitdb/pack.py +++ b/gitdb/pack.py @@ -267,8 +267,6 @@ def close(self): def _set_cache_(self, attr): if attr == "_packfile_checksum": self._packfile_checksum = self._cursor.map()[-40:-20] - elif attr == "_packfile_checksum": - self._packfile_checksum = self._cursor.map()[-20:] elif attr == "_cursor": # Note: We don't lock the file when reading as we cannot be sure # that we can actually write to the location - it could be a read-only @@ -848,7 +846,6 @@ def is_valid_stream(self, sha, use_crc=False): assert shawriter.sha(as_hex=False) == sha return shawriter.sha(as_hex=False) == sha # END handle crc/sha verification - return True def info_iter(self): """