diff --git a/themes/typing/scripts/cloudinary.js b/themes/typing/scripts/cloudinary.js index b4672f5..d4c50ea 100644 --- a/themes/typing/scripts/cloudinary.js +++ b/themes/typing/scripts/cloudinary.js @@ -10,11 +10,7 @@ */ hexo.extend.tag.register('cloudinary', (args) => { const fileName = args[0] - let alt = '' - - if (args[1]) { - alt = args[1] - } + const alt = args[1] || '' return '' + alt + '' })