| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b6e3ad2 commit b5d9198
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,9 +30,6 @@ | |||
| 30 | 30 | ||
| 31 | 31 | # -------------------------------------------------------------------------- | |
| 32 | 32 | ||
| 33 | - | ||
| 34 | - # _assertion_msg_format = "Created object %r whose python type %r disagrees with the actual git object type %r" | ||
| 35 | - | ||
| 36 | 33 | __all__ = ("Object", "IndexObject") | |
| 37 | 34 | ||
| 38 | 35 | ||
@@ -154,8 +151,7 @@ def _set_cache_(self, attr: str) -> None: | |||
| 154 | 151 | """Retrieve object information.""" | |
| 155 | 152 | if attr == "size": | |
| 156 | 153 | 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 | ||
| 159 | 155 | else: | |
| 160 | 156 | super()._set_cache_(attr) | |
| 161 | 157 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments