From 590403650ea8d985d457163514ec2e9dcebda892 Mon Sep 17 00:00:00 2001 From: Dmitry Yankowski Date: Tue, 25 Feb 2020 20:48:48 -0500 Subject: [PATCH] Remove unnecessary variable --- components/ace-editor.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/components/ace-editor.vue b/components/ace-editor.vue index 92de05e4..9477bdb6 100644 --- a/components/ace-editor.vue +++ b/components/ace-editor.vue @@ -55,7 +55,6 @@ export default { return { initialized: false, editor: null, - shouldLint: true, cacheValue: "", } }, @@ -65,7 +64,7 @@ export default { if (value !== this.cacheValue) { this.editor.session.setValue(value, 1) this.cacheValue = value - if (this.shouldLint) this.provideLinting(value) + if (this.lint) this.provideLinting(value) } }, theme() { @@ -109,11 +108,11 @@ export default { const content = editor.getValue() this.$emit("input", content) this.cacheValue = content - if (this.shouldLint) this.provideLinting(content) + if (this.lint) this.provideLinting(content) }) // Disable linting, if lint prop is false - if (this.shouldLint) this.provideLinting(this.value) + if (this.lint) this.provideLinting(this.value) }, methods: {