Skip to content

Commit

Permalink
Converted has helper imports to individual const
Browse files Browse the repository at this point in the history
no-issue
  • Loading branch information
allouis authored and kevinansfield committed Oct 28, 2019
1 parent d78cbed commit 80e1530
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/frontend/helpers/has.js
Expand Up @@ -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)) {
Expand Down

0 comments on commit 80e1530

Please sign in to comment.