mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 18:56:15 +01:00
chore(deps): update dependency eslint-config-airbnb-base to v13 (#6599)
* chore(deps): update dependency eslint-config-airbnb-base to v13 * chore: #6599, linting 😬
This commit is contained in:
committed by
Julian Lam
parent
eb0a322d7f
commit
64b9dabff8
@@ -39,10 +39,10 @@ widgets.render = function (uid, options, callback) {
|
||||
}
|
||||
|
||||
async.map(widgetsByLocation[location], function (widget, next) {
|
||||
if (!widget || !widget.data ||
|
||||
(!!widget.data['hide-registered'] && uid !== 0) ||
|
||||
(!!widget.data['hide-guests'] && uid === 0) ||
|
||||
(!!widget.data['hide-mobile'] && options.req.useragent.isMobile)) {
|
||||
if (!widget || !widget.data
|
||||
|| (!!widget.data['hide-registered'] && uid !== 0)
|
||||
|| (!!widget.data['hide-guests'] && uid === 0)
|
||||
|| (!!widget.data['hide-mobile'] && options.req.useragent.isMobile)) {
|
||||
return next();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user