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:
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
|
||||
|
||||
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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue