From d8aa8ab3d070129962396bd7b7fcc9e32df01c5e Mon Sep 17 00:00:00 2001 From: Joost De Cock Date: Sun, 17 May 2020 11:41:05 +0200 Subject: [PATCH] Fat arrow function syntax Changed one function call to fat arrow syntax, as that's what all the other methods are using. Seems more consistent that way. --- packages/plugin-mirror/src/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/plugin-mirror/src/index.js b/packages/plugin-mirror/src/index.js index 85fd97af5a1..3fbf0dbfa75 100644 --- a/packages/plugin-mirror/src/index.js +++ b/packages/plugin-mirror/src/index.js @@ -18,9 +18,7 @@ export const mirrorGen = (start, end) => { } } -function capFirst(string) { - return string.charAt(0).toUpperCase() + string.slice(1) -} +const capFirst = string => string.charAt(0).toUpperCase() + string.slice(1) export default { name: name,