0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -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
var proxy = require('./proxy'),
_ = require('lodash'),
logging = proxy.logging,
i18n = proxy.i18n,
validAttrs = ['tag', 'author', 'slug', 'id', 'number', 'index', 'any', 'all'];
const proxy = require('./proxy');
const _ = require('lodash');
const logging = proxy.logging;
const i18n = proxy.i18n;
const validAttrs = ['tag', 'author', 'slug', 'id', 'number', 'index', 'any', 'all'];
function handleCount(ctxAttr, data) {
if (!data || !_.isFinite(data.length)) {