Skip to content

Commit

Permalink
Refacto: remove useless assesment lines
Browse files Browse the repository at this point in the history
  • Loading branch information
amelie-rondot committed Feb 23, 2024
1 parent f10160b commit ca40db1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions frictionless/detector/detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand All @@ -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(
Expand Down

0 comments on commit ca40db1

Please sign in to comment.