From 5c35c2631e59f895a7b0fb6761c1cae7aee60466 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Thu, 19 Nov 2015 18:10:08 -0500 Subject: Upgrading ESLint and adding some more rules. Refactoring to meet these new rules --- web/react/components/command_list.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'web/react/components/command_list.jsx') diff --git a/web/react/components/command_list.jsx b/web/react/components/command_list.jsx index a6d9d5d70..9b479b973 100644 --- a/web/react/components/command_list.jsx +++ b/web/react/components/command_list.jsx @@ -13,14 +13,14 @@ export default class CommandList extends React.Component { this.getSuggestedCommands = this.getSuggestedCommands.bind(this); this.state = { - suggestions: [ ], + suggestions: [], cmd: '' }; } handleClick(i) { this.props.addCommand(this.state.suggestions[i].suggestion); - this.setState({suggestions: [ ], cmd: ''}); + this.setState({suggestions: [], cmd: ''}); } addFirstCommand() { @@ -36,7 +36,7 @@ export default class CommandList extends React.Component { getSuggestedCommands(cmd) { if (!cmd || cmd.charAt(0) !== '/') { - this.setState({suggestions: [ ], cmd: ''}); + this.setState({suggestions: [], cmd: ''}); return; } -- cgit v1.2.3-1-g7c22