From ea871384d8371ba5963ffe6e2e07e15d22aa6ce6 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 3 Mar 2017 16:45:18 +0300 Subject: [PATCH] remove fallbacks --- src/controllers/categories.js | 2 +- src/meta/tags.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/categories.js b/src/controllers/categories.js index 29ad406f98..844163adb7 100644 --- a/src/controllers/categories.js +++ b/src/controllers/categories.js @@ -24,7 +24,7 @@ categoriesController.list = function (req, res, next) { if (meta.config.description) { res.locals.metaTags.push({ name: 'description', - content: String(meta.config.description || ''), + content: String(meta.config.description), }); } diff --git a/src/meta/tags.js b/src/meta/tags.js index afef4bab0f..fa88fa30b8 100644 --- a/src/meta/tags.js +++ b/src/meta/tags.js @@ -134,7 +134,7 @@ module.exports = function (Meta) { if (!hasDescription && Meta.config.description) { meta.push({ name: 'description', - content: validator.escape(String(Meta.config.description || '')), + content: validator.escape(String(Meta.config.description)), }); } }