mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-22 08:50:56 +02:00
lint
This commit is contained in:
@@ -108,8 +108,10 @@ export const isImageFileHandle = (handle: FileSystemHandle | null) => {
|
||||
};
|
||||
|
||||
const getExtensionFromFilename = (filename?: string): string | null => {
|
||||
if (!filename) return null;
|
||||
const ext = filename.split('.').pop()?.toLowerCase();
|
||||
if (!filename) {
|
||||
return null;
|
||||
}
|
||||
const ext = filename.split(".").pop()?.toLowerCase();
|
||||
return ext || null;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user