diff options
| author | Noritaka Kobayashi <[email protected]> | 2025-06-30 04:06:03 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-29 19:06:03 +0000 |
| commit | 9ae2595bfde85d24ae0330d50f97ce0a8e2dc374 (patch) | |
| tree | 7030ac61282d72181adfe404a07ce0bcad18a0a0 /packages/core/src/utils/editor.ts | |
| parent | 65a58c3b03aa79dfa67274beb694d530ec97f150 (diff) | |
refactor: remove unnecessary assertion (#2579)
Diffstat (limited to 'packages/core/src/utils/editor.ts')
| -rw-r--r-- | packages/core/src/utils/editor.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/packages/core/src/utils/editor.ts b/packages/core/src/utils/editor.ts index ac83b409..8e85f13c 100644 --- a/packages/core/src/utils/editor.ts +++ b/packages/core/src/utils/editor.ts @@ -75,10 +75,7 @@ export function allowEditorTypeInSandbox(editor: EditorType): boolean { */ export function isEditorAvailable(editor: string | undefined): boolean { if (editor && isValidEditorType(editor)) { - return ( - checkHasEditorType(editor as EditorType) && - allowEditorTypeInSandbox(editor as EditorType) - ); + return checkHasEditorType(editor) && allowEditorTypeInSandbox(editor); } return false; } |
