From 79c6a77d187cce5d1a576f409fd223c678ccf3ce Mon Sep 17 00:00:00 2001 From: BoHong Li Date: Fri, 12 Apr 2019 17:56:54 +0800 Subject: [PATCH] refactor: fix lint warning on lib/letter-avatars.js Signed-off-by: BoHong Li --- lib/letter-avatars.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/letter-avatars.js b/lib/letter-avatars.js index a5dd8207..349e95b9 100644 --- a/lib/letter-avatars.js +++ b/lib/letter-avatars.js @@ -30,14 +30,14 @@ exports.generateAvatarURL = function (name, email = '', big = true) { if (typeof email !== 'string') { email = '' + name + '@example.com' } - name=encodeURIComponent(name) + name = encodeURIComponent(name) let hash = crypto.createHash('md5') hash.update(email.toLowerCase()) let hexDigest = hash.digest('hex') if (email !== '' && config.allowGravatar) { - photo = 'https://www.gravatar.com/avatar/' + hexDigest; + photo = 'https://www.gravatar.com/avatar/' + hexDigest if (big) { photo += '?s=400' } else {