From 0bd34453701e8795701f026d90cd05138623603f Mon Sep 17 00:00:00 2001 From: JianXu Date: Mon, 11 Jun 2018 17:49:20 +0800 Subject: [PATCH] use 'const' instead of 'let' --- browser/components/CodeEditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/components/CodeEditor.js b/browser/components/CodeEditor.js index 92bc6599..91e7683a 100644 --- a/browser/components/CodeEditor.js +++ b/browser/components/CodeEditor.js @@ -499,7 +499,7 @@ export default class CodeEditor extends React.Component { fontFamily = _.isString(fontFamily) && fontFamily.length > 0 ? [fontFamily].concat(defaultEditorFontFamily) : defaultEditorFontFamily - let width = this.props.width + const width = this.props.width return (