style: array destructuring

https://github.com/airbnb/javascript#destructuring--array
This commit is contained in:
curben 2019-09-03 03:48:42 +01:00
parent 3b4e5e2240
commit b4dd405a5a
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
1 changed files with 2 additions and 2 deletions

View File

@ -10,8 +10,8 @@
hexo.extend.tag.register('cloudinary', (args) => {
const user = 'curben'
const fileName = args[0]
const alt = args[1] || ''
let [fileName, alt] = args
if (!alt) alt = ''
let modern = ''
let legacy = ''
const link = 'https://cdn.statically.io/img/res.cloudinary.com/' + user