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 @@ -230,12 +230,10 @@ def __eq__(self, other: Any) -> bool:
230
230
231
231
232
232
@lru_cache
233
- def _manifests (io : FileIO , manifest_list : Optional [ str ] ) -> List [ManifestFile ]:
233
+ def _manifests (io : FileIO , manifest_list : str ) -> List [ManifestFile ]:
234
234
"""Return the manifests from the manifest list."""
235
- if manifest_list not in (None , "" ):
236
- file = io .new_input (manifest_list ) # type: ignore
237
- return list (read_manifest_list (file ))
238
- return []
235
+ file = io .new_input (manifest_list )
236
+ return list (read_manifest_list (file ))
239
237
240
238
241
239
class Snapshot (IcebergBaseModel ):
@@ -259,7 +257,9 @@ def __str__(self) -> str:
259
257
260
258
def manifests (self , io : FileIO ) -> List [ManifestFile ]:
261
259
"""Return the manifests for the given snapshot."""
262
- return _manifests (io , self .manifest_list )
260
+ if self .manifest_list :
261
+ return _manifests (io , self .manifest_list )
262
+ return []
263
263
264
264
265
265
class MetadataLogEntry (IcebergBaseModel ):
You can’t perform that action at this time.
0 commit comments