From 9107744da73d16037f31c9203a290086e45e5c3d Mon Sep 17 00:00:00 2001
From: Michael Telatynski <7t3chguy@gmail.com>
Date: Mon, 18 Jun 2018 19:32:12 +0100
Subject: [PATCH] simplify arrow func
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
---
src/autocomplete/CommandProvider.js | 20 +++++++++-----------
1 file changed, 9 insertions(+), 11 deletions(-)
diff --git a/src/autocomplete/CommandProvider.js b/src/autocomplete/CommandProvider.js
index 01a40be40c..0e780bddd3 100644
--- a/src/autocomplete/CommandProvider.js
+++ b/src/autocomplete/CommandProvider.js
@@ -43,17 +43,15 @@ export default class CommandProvider extends AutocompleteProvider {
// if the query is just `/` (and the user hit TAB or waits), show them all COMMANDS otherwise FuzzyMatch them
const matches = query === '/' ? COMMANDS : this.matcher.match(command[1]);
- return matches.map((result) => {
- return {
- // If the command is the same as the one they entered, we don't want to discard their arguments
- completion: result.command === command[1] ? command[0] : (result.command + ' '),
- component: ,
- range,
- };
- });
+ return matches.map((result) => ({
+ // If the command is the same as the one they entered, we don't want to discard their arguments
+ completion: result.command === command[1] ? command[0] : (result.command + ' '),
+ component: ,
+ range,
+ }));
}
getName() {