From ca40db1f65c55adec94c000040aa655f19fd938e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Am=C3=A9lie=20Rondot?= Date: Fri, 23 Feb 2024 12:37:41 +0100 Subject: [PATCH] Refacto: remove useless assesment lines --- frictionless/detector/detector.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/frictionless/detector/detector.py b/frictionless/detector/detector.py index d417ff5b0e..2287392196 100644 --- a/frictionless/detector/detector.py +++ b/frictionless/detector/detector.py @@ -412,10 +412,6 @@ def detect_schema( case_sensitive = options["header_case"] - assert schema - assert schema.fields - assert all(isinstance(field, Field) for field in schema.fields) - mapped_fields = self.mapped_schema_fields_names( schema.fields, case_sensitive # type: ignore ) @@ -440,7 +436,7 @@ def detect_schema( field_descriptor.update(field_patch) schema = Schema.from_descriptor(descriptor) - return schema # type: ignore + return schema @staticmethod def mapped_schema_fields_names(