From d1291f67551c58168af43698a359cb5ddfd266b0 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 3 Nov 2016 01:33:53 +0100 Subject: node_modules --- node_modules/detect-indent/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'node_modules/detect-indent/index.js') 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); } }); -- cgit v1.2.3