0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Converted has helper imports to individual const

no-issue
This commit is contained in:
Fabien O'Carroll 2019-10-28 16:55:55 +07:00 committed by Kevin Ansfield
parent d78cbed84d
commit 80e1530f7e

View file

@ -4,11 +4,11 @@
// //
// Checks if a post has a particular property // Checks if a post has a particular property
var proxy = require('./proxy'), const proxy = require('./proxy');
_ = require('lodash'), const _ = require('lodash');
logging = proxy.logging, const logging = proxy.logging;
i18n = proxy.i18n, const i18n = proxy.i18n;
validAttrs = ['tag', 'author', 'slug', 'id', 'number', 'index', 'any', 'all']; const validAttrs = ['tag', 'author', 'slug', 'id', 'number', 'index', 'any', 'all'];
function handleCount(ctxAttr, data) { function handleCount(ctxAttr, data) {
if (!data || !_.isFinite(data.length)) { if (!data || !_.isFinite(data.length)) {