Skip to content

Commit b5d9198

Browse files
committed
Remove commented-out code
1 parent b6e3ad2 commit b5d9198

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Diff for: git/objects/base.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@
3030

3131
# --------------------------------------------------------------------------
3232

33-
34-
# _assertion_msg_format = "Created object %r whose python type %r disagrees with the actual git object type %r"
35-
3633
__all__ = ("Object", "IndexObject")
3734

3835

@@ -154,8 +151,7 @@ def _set_cache_(self, attr: str) -> None:
154151
"""Retrieve object information."""
155152
if attr == "size":
156153
oinfo = self.repo.odb.info(self.binsha)
157-
self.size = oinfo.size # type: int
158-
# assert oinfo.type == self.type, _assertion_msg_format % (self.binsha, oinfo.type, self.type)
154+
self.size = oinfo.size # type: int
159155
else:
160156
super()._set_cache_(attr)
161157

0 commit comments

Comments
 (0)