From 83dbb85106e4bc6dc6578064bf629dd4ce0c0c9a Mon Sep 17 00:00:00 2001 From: Johan Venant Date: Tue, 25 Jun 2024 13:34:03 +0200 Subject: [PATCH] :art: remove useless find replace `config.types.find(type => type.name === emoji.name).name` by `emoji.name` --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 128e7ac..88512f1 100644 --- a/index.js +++ b/index.js @@ -164,7 +164,7 @@ function formatCommitMessage(answers, config) { const { columns } = process.stdout const emoji = answers.type - const type = config.types.find(type => type.name === emoji.name).name + const type = emoji.name const scope = answers.scope ? '(' + answers.scope.trim() + ')' : '' const subject = answers.subject.trim()