Skip to content

Commit

Permalink
Replace string concatenations with template literals in bin/dkimverify (
Browse files Browse the repository at this point in the history
  • Loading branch information
mkp7 authored and msimerson committed Oct 30, 2017
1 parent 987bcc9 commit 7f511b6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bin/dkimverify
Expand Up @@ -24,10 +24,7 @@ const verifier = new DKIMVerifyStream(function (err, result, results) {
if (err) console.log(err.message);
if (Array.isArray(results)) {
results.forEach(function (res) {
console.log('identity="' + res.identity + '" ' +
'domain="' + res.domain + '" ' +
'result=' + res.result + ' ' +
((res.error) ? '(' + res.error + ')' : ''));
console.log(`identity="${res.identity}" domain="${res.domain}" result=${res.result} ${(res.error) ? `(${res.error})` : ''}`);
});
}
else {
Expand Down

0 comments on commit 7f511b6

Please sign in to comment.