summaryrefslogtreecommitdiff
path: root/packages/core/src/utils/editor.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/core/src/utils/editor.ts')
-rw-r--r--packages/core/src/utils/editor.ts5
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;
}