File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -232,12 +232,10 @@ def __eq__(self, other: Any) -> bool:
232
232
233
233
234
234
@lru_cache
235
- def _manifests (io : FileIO , manifest_list : Optional [ str ] ) -> List [ManifestFile ]:
235
+ def _manifests (io : FileIO , manifest_list : str ) -> List [ManifestFile ]:
236
236
"""Return the manifests from the manifest list."""
237
- if manifest_list not in (None , "" ):
238
- file = io .new_input (manifest_list ) # type: ignore
239
- return list (read_manifest_list (file ))
240
- return []
237
+ file = io .new_input (manifest_list )
238
+ return list (read_manifest_list (file ))
241
239
242
240
243
241
class Snapshot (IcebergBaseModel ):
@@ -261,7 +259,9 @@ def __str__(self) -> str:
261
259
262
260
def manifests (self , io : FileIO ) -> List [ManifestFile ]:
263
261
"""Return the manifests for the given snapshot."""
264
- return _manifests (io , self .manifest_list )
262
+ if self .manifest_list :
263
+ return _manifests (io , self .manifest_list )
264
+ return []
265
265
266
266
267
267
class MetadataLogEntry (IcebergBaseModel ):
You can’t perform that action at this time.
0 commit comments