Skip to content

Commit

Permalink
Merge pull request #1048 from abetomo/fix_variable_declaration
Browse files Browse the repository at this point in the history
Fix variable declaration
  • Loading branch information
keithamus committed Sep 12, 2017
2 parents 9489ece + 84d1410 commit 0d19b35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/chai/core/assertions.js
Expand Up @@ -2254,6 +2254,7 @@ module.exports = function (chai, _) {
, isDeep = flag(this, 'deep')
, str
, deepStr = ''
, actual
, ok = true
, flagMsg = flag(this, 'message');

Expand Down Expand Up @@ -2303,8 +2304,7 @@ module.exports = function (chai, _) {
var len = keys.length
, any = flag(this, 'any')
, all = flag(this, 'all')
, expected = keys
, actual;
, expected = keys;

if (!any && !all) {
all = true;
Expand Down
2 changes: 0 additions & 2 deletions lib/chai/utils/addLengthGuard.js
@@ -1,5 +1,3 @@
var config = require('../config');

var fnLengthDesc = Object.getOwnPropertyDescriptor(function () {}, 'length');

/*!
Expand Down

0 comments on commit 0d19b35

Please sign in to comment.