summaryrefslogtreecommitdiffstats
path: root/web/react/components/command_list.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-11-19 18:10:08 -0500
committerChristopher Speller <crspeller@gmail.com>2015-11-19 18:10:08 -0500
commit5c35c2631e59f895a7b0fb6761c1cae7aee60466 (patch)
tree0d05efe9841a1a62fbf277a025dc6a16bed6750a /web/react/components/command_list.jsx
parentc22e8129b0b5f67df6ab8384261a4994fc5cbfb1 (diff)
downloadchat-5c35c2631e59f895a7b0fb6761c1cae7aee60466.tar.gz
chat-5c35c2631e59f895a7b0fb6761c1cae7aee60466.tar.bz2
chat-5c35c2631e59f895a7b0fb6761c1cae7aee60466.zip
Upgrading ESLint and adding some more rules. Refactoring to meet these new rules
Diffstat (limited to 'web/react/components/command_list.jsx')
-rw-r--r--web/react/components/command_list.jsx6
1 files changed, 3 insertions, 3 deletions
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;
}