From 1806c217d849d7ce1b52e7e00bc65c805267b2ba Mon Sep 17 00:00:00 2001 From: Harikrishnan Balagopal Date: Thu, 5 Dec 2024 17:38:49 +0530 Subject: [PATCH] refactor: remove unnecessary else Signed-off-by: Harikrishnan Balagopal --- src/datasets/iterable_dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datasets/iterable_dataset.py b/src/datasets/iterable_dataset.py index 8d1cefa3e72..02e5d9854d8 100644 --- a/src/datasets/iterable_dataset.py +++ b/src/datasets/iterable_dataset.py @@ -2992,7 +2992,7 @@ def _step(self, step: int, offset: int) -> "IterableDataset": def _resolve_features(self): if self.features is not None: return self - elif isinstance(self._ex_iterable, TypedExamplesIterable): + if isinstance(self._ex_iterable, TypedExamplesIterable): features = self._ex_iterable.features else: features = _infer_features_from_batch(self.with_format(None)._head())