From: Chris Rebert Date: Thu, 10 Oct 2013 00:57:52 +0000 (-0700) Subject: trivial refactor in build-customizer grunt task X-Git-Tag: v3.0.1~39^2~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9ed8e6f003d60e50873976a6573eb0faa3c26c9;p=thirdparty%2Fbootstrap.git trivial refactor in build-customizer grunt task --- diff --git a/Gruntfile.js b/Gruntfile.js index 4242bb7bd1..6d33703c88 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -210,8 +210,8 @@ module.exports = function(grunt) { return type == 'fonts' ? true : new RegExp('\\.' + type + '$').test(path) }) .forEach(function (path) { - return type == 'fonts' ? files[path] = btoa(fs.readFileSync(type + '/' + path)) : - files[path] = fs.readFileSync(type + '/' + path, 'utf8') + var fullPath = type + '/' + path + return files[path] = (type == 'fonts' ? btoa(fs.readFileSync(fullPath)) : fs.readFileSync(fullPath, 'utf8')) }) return 'var __' + type + ' = ' + JSON.stringify(files) + '\n' }