From a097e96600c2a3a2dba67b805ff163a8e5dd0f2d Mon Sep 17 00:00:00 2001 From: Dominik Moritz Date: Mon, 19 Jul 2021 12:05:32 -0700 Subject: [PATCH] chore: format --- src/diff.tsx | 9 ++------- src/editor.tsx | 11 ++--------- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/src/diff.tsx b/src/diff.tsx index e7c0e5d3..cec01906 100644 --- a/src/diff.tsx +++ b/src/diff.tsx @@ -142,13 +142,8 @@ class MonacoDiffEditor extends React.Component { initMonaco() { const value = this.props.value != null ? this.props.value : this.props.defaultValue; - const { - original, - theme, - options, - overrideServices, - className, - } = this.props; + const { original, theme, options, overrideServices, className } = + this.props; if (this.containerElement) { // Before initializing monaco editor this.editorWillMount(); diff --git a/src/editor.tsx b/src/editor.tsx index f9cc19c8..6da80a61 100644 --- a/src/editor.tsx +++ b/src/editor.tsx @@ -53,15 +53,8 @@ class MonacoEditor extends React.Component { } componentDidUpdate(prevProps: MonacoEditorProps) { - const { - value, - language, - theme, - height, - options, - width, - className, - } = this.props; + const { value, language, theme, height, options, width, className } = + this.props; const { editor } = this; const model = editor.getModel();