diff options
Diffstat (limited to 'node_modules/detect-indent/index.js')
-rw-r--r-- | node_modules/detect-indent/index.js | 5 |
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); } }); |