Skip to content

Commit 79c6a77

Browse files
committed
refactor: fix lint warning on lib/letter-avatars.js
Signed-off-by: BoHong Li <[email protected]>
1 parent f2c8c11 commit 79c6a77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/letter-avatars.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ exports.generateAvatarURL = function (name, email = '', big = true) {
3030
if (typeof email !== 'string') {
3131
email = '' + name + '@example.com'
3232
}
33-
name=encodeURIComponent(name)
33+
name = encodeURIComponent(name)
3434

3535
let hash = crypto.createHash('md5')
3636
hash.update(email.toLowerCase())
3737
let hexDigest = hash.digest('hex')
3838

3939
if (email !== '' && config.allowGravatar) {
40-
photo = 'https://www.gravatar.com/avatar/' + hexDigest;
40+
photo = 'https://www.gravatar.com/avatar/' + hexDigest
4141
if (big) {
4242
photo += '?s=400'
4343
} else {

0 commit comments

Comments
 (0)