Selaa lähdekoodia

Remove duplicate check for sha files.

Jelmer Vernooij 16 vuotta sitten
vanhempi
commit
94fb7f2a54
1 muutettua tiedostoa jossa 0 lisäystä ja 5 poistoa
  1. 0 5
      dulwich/object_store.py

+ 0 - 5
dulwich/object_store.py

@@ -121,11 +121,6 @@ class ObjectStore(object):
         raise KeyError(sha)
 
     def __getitem__(self, sha):
-        assert len(sha) == 40, "Incorrect length sha: %s" % str(sha)
-        ret = self._get_shafile(sha)
-        if ret is not None:
-            return ret
-        # Check from packs
         type, uncomp = self.get_raw(sha)
         return ShaFile.from_raw_string(type, uncomp)