From 360d7b86aa4cb41e71367cb94b04c15666fcd71c Mon Sep 17 00:00:00 2001 From: David Sevilla Martin Date: Sat, 15 Apr 2017 18:49:49 -0400 Subject: [PATCH] perf(gitlab: events): update issue/* & note/commit - remove string creation on embed descriptions --- lib/Gitlab/Events/issue-close.js | 2 +- lib/Gitlab/Events/issue-open.js | 2 +- lib/Gitlab/Events/issue-reopen.js | 2 +- lib/Gitlab/Events/issue-update.js | 2 +- lib/Gitlab/Events/note-commit.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Gitlab/Events/issue-close.js b/lib/Gitlab/Events/issue-close.js index d271d97..ad5a591 100644 --- a/lib/Gitlab/Events/issue-close.js +++ b/lib/Gitlab/Events/issue-close.js @@ -12,7 +12,7 @@ class IssueClose extends EventResponse { return { color: 0xE9642D, title: `Closed issue #${issue.iid}: \`${issue.title}\``, - description: `${issue.description}`, + description: issue.description, }; } diff --git a/lib/Gitlab/Events/issue-open.js b/lib/Gitlab/Events/issue-open.js index d934253..ac6d54d 100644 --- a/lib/Gitlab/Events/issue-open.js +++ b/lib/Gitlab/Events/issue-open.js @@ -12,7 +12,7 @@ class IssueOpen extends EventResponse { return { color: 0xE9642D, title: `Opened issue #${issue.iid}: \`${issue.title}\``, - description: `${issue.description}`, + description: issue.description, }; } diff --git a/lib/Gitlab/Events/issue-reopen.js b/lib/Gitlab/Events/issue-reopen.js index 5ae7b8b..1dc7b6f 100644 --- a/lib/Gitlab/Events/issue-reopen.js +++ b/lib/Gitlab/Events/issue-reopen.js @@ -12,7 +12,7 @@ class IssueReopen extends EventResponse { return { color: 0xE9642D, title: `Reopened issue #${issue.iid} \`${issue.title}\``, - description: `${issue.description}`, + description: issue.description, }; } diff --git a/lib/Gitlab/Events/issue-update.js b/lib/Gitlab/Events/issue-update.js index a2cae2b..d092cce 100644 --- a/lib/Gitlab/Events/issue-update.js +++ b/lib/Gitlab/Events/issue-update.js @@ -12,7 +12,7 @@ class IssueUpdate extends EventResponse { return { color: 0xE9642D, title: `Updated issue #${issue.iid} \`${issue.title}\``, - description: `${issue.description}`, + description: issue.description, }; } diff --git a/lib/Gitlab/Events/note-commit.js b/lib/Gitlab/Events/note-commit.js index f17f27b..c48ec0a 100644 --- a/lib/Gitlab/Events/note-commit.js +++ b/lib/Gitlab/Events/note-commit.js @@ -13,7 +13,7 @@ class NoteCommit extends EventResponse { return { color: `#996633`, title: `Commented on commit \`${sha}\``, - description: `${comment.note}`, + description: comment.note, }; }