From 27248d8f95a7d76e7df115393de96b8e554a53a3 Mon Sep 17 00:00:00 2001 From: ehmicky Date: Sun, 5 Sep 2021 15:54:57 +0200 Subject: [PATCH] Refactoring --- src/run/preview/update/actions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/run/preview/update/actions.js b/src/run/preview/update/actions.js index 995d954b6..797f2761d 100644 --- a/src/run/preview/update/actions.js +++ b/src/run/preview/update/actions.js @@ -7,7 +7,7 @@ export const getActions = function (actions, leftWidth) { return '' } - const actionsStr = actions.map(getAction).join(noteColor(', ')) + const actionsStr = actions.map(getAction).join(noteColor(ACTION_SEPARATOR)) return `${ACTIONS_LABEL.padEnd(leftWidth)}${actionsStr}` } @@ -15,4 +15,5 @@ const getAction = function ({ key, explanation }) { return `${goodColor(key)} ${noteColor(`(${explanation})`)}` } +const ACTION_SEPARATOR = ', ' export const ACTIONS_LABEL = 'Actions'