remove some parseInts

This commit is contained in:
Barış Soner Uşaklı
2018-10-20 17:55:13 -04:00
parent f5fe91286e
commit ee2f9e9434
7 changed files with 14 additions and 14 deletions

View File

@@ -164,7 +164,7 @@ helpers.buildCategoryBreadcrumbs = function (cid, callback) {
return next(err);
}
if (!parseInt(data.disabled, 10) && !parseInt(data.isSection, 10)) {
if (!data.disabled && !data.isSection) {
breadcrumbs.unshift({
text: validator.escape(String(data.name)),
url: nconf.get('relative_path') + '/category/' + data.slug,