diff options
author | 2021-10-31 19:53:54 +0100 | |
---|---|---|
committer | 2021-10-31 19:53:54 +0100 | |
commit | 7ee5f7530e6d7120750811376834bdcacd9ca0d4 (patch) | |
tree | c1e0f0174203be5ef064b666f858b025fb25f0bf /language-web/src/main/js/editor | |
parent | Merge pull request #8 from kris7t/cm6 (diff) | |
download | refinery-7ee5f7530e6d7120750811376834bdcacd9ca0d4.tar.gz refinery-7ee5f7530e6d7120750811376834bdcacd9ca0d4.tar.zst refinery-7ee5f7530e6d7120750811376834bdcacd9ca0d4.zip |
chore: fix Sonar warnings
Diffstat (limited to 'language-web/src/main/js/editor')
-rw-r--r-- | language-web/src/main/js/editor/EditorArea.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/language-web/src/main/js/editor/EditorArea.tsx b/language-web/src/main/js/editor/EditorArea.tsx index 678a632d..dba20f6e 100644 --- a/language-web/src/main/js/editor/EditorArea.tsx +++ b/language-web/src/main/js/editor/EditorArea.tsx | |||
@@ -95,8 +95,9 @@ export const EditorArea = observer(() => { | |||
95 | 95 | ||
96 | useEffect(() => { | 96 | useEffect(() => { |
97 | if (editorParentRef.current === null) { | 97 | if (editorParentRef.current === null) { |
98 | // Nothing to clean up. | 98 | return () => { |
99 | return () => {}; | 99 | // Nothing to clean up. |
100 | }; | ||
100 | } | 101 | } |
101 | 102 | ||
102 | const editorView = new EditorView({ | 103 | const editorView = new EditorView({ |