aboutsummaryrefslogtreecommitdiff
path: root/node_modules/detect-indent/index.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-03 01:33:53 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-03 01:33:53 +0100
commitd1291f67551c58168af43698a359cb5ddfd266b0 (patch)
tree55a13ed29fe1915e3f42f1b1b7038dafa2e975a7 /node_modules/detect-indent/index.js
parentd0a0695fb5d34996850723f7d4b1b59c3df909c2 (diff)
node_modules
Diffstat (limited to 'node_modules/detect-indent/index.js')
-rw-r--r--node_modules/detect-indent/index.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/node_modules/detect-indent/index.js b/node_modules/detect-indent/index.js
index e9b91424c..c2da33799 100644
--- a/node_modules/detect-indent/index.js
+++ b/node_modules/detect-indent/index.js
@@ -1,3 +1,4 @@
+/* eslint-disable guard-for-in */
'use strict';
var repeating = require('repeating');
@@ -18,7 +19,7 @@ function getMostUsed(indents) {
if (u > maxUsed || u === maxUsed && w > maxWeight) {
maxUsed = u;
maxWeight = w;
- result = +n;
+ result = Number(n);
}
}
@@ -92,7 +93,7 @@ module.exports = function (str) {
}
} else if (current) {
// if the last action was an indent, increment the weight
- current[1] += +isIndent;
+ current[1] += Number(isIndent);
}
});