Skip to content

Commit 0e36fb2

Browse files
committed
Fixing lint warning and simplifying code.
1 parent 2354275 commit 0e36fb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ exports.processMessage = function(data) {
262262

263263
// Replace original 'To' header with a manually defined one
264264
if (data.config.toEmail) {
265-
header = header.replace(/^to:[\t ]?(.*)/mgi, () => 'To: ' + data.config.toEmail);
265+
header = header.replace(/^to:[\t ]?(.*)/mgi, 'To: ' + data.config.toEmail);
266266
}
267267

268268
// Remove the Return-Path header.

0 commit comments

Comments
 (0)