Skip to content

Commit

Permalink
chore: some updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nuffin committed Oct 20, 2024
1 parent 498b415 commit 90b3dac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llmpa/fileparser/mimetype.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"font/woff": "Web Open Font Format", # woff
}

supported_mimetypes_names = mimetypes_names
supported_mimetypes = mimetypes_names.keys()


def _detect(filepath: str, follow_symlinks: bool = True) -> str:
Expand All @@ -51,7 +51,7 @@ def _detect(filepath: str, follow_symlinks: bool = True) -> str:

def detect(filepath: str, follow_symlinks: bool = True) -> str:
mimetype = _detect(filepath, follow_symlinks)
return mimetype if mimetype in supported_mimetypes_names else None
return mimetype if mimetype in supported_mimetypes else None


def main():
Expand Down

0 comments on commit 90b3dac

Please sign in to comment.