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:
parent
d78cbed84d
commit
80e1530f7e
1 changed files with 5 additions and 5 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue