From: Zlatan Vasović Date: Sat, 28 Dec 2013 22:33:32 +0000 (+0100) Subject: Merge two fs variable declarations into one X-Git-Tag: v3.1.0~130^2~8^2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0016b508cb0b07e943e96dd227e76d8eabb7ce2e;p=thirdparty%2Fbootstrap.git Merge two fs variable declarations into one One is enough. --- diff --git a/Gruntfile.js b/Gruntfile.js index 6107ecafd7..46d5184b01 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -9,7 +9,10 @@ module.exports = function (grunt) { RegExp.quote = function (string) { return string.replace(/[-\\^$*+?.()|[\]{}]/g, '\\$&') } + + var fs = require('fs') var btoa = require('btoa') + // Project configuration. grunt.initConfig({ @@ -320,8 +323,6 @@ module.exports = function (grunt) { grunt.registerTask('change-version-number', ['sed']); grunt.registerTask('build-glyphicons-data', function () { - var fs = require('fs') - // Pass encoding, utf8, so `readFileSync` will return a string instead of a // buffer var glyphiconsFile = fs.readFileSync('less/glyphicons.less', 'utf8') @@ -347,8 +348,6 @@ module.exports = function (grunt) { // task for building customizer grunt.registerTask('build-customizer', 'Add scripts/less files to customizer.', function () { - var fs = require('fs') - function getFiles(type) { var files = {} fs.readdirSync(type)