From: James Friend Date: Thu, 28 Aug 2014 01:54:51 +0000 (+0800) Subject: code style fixes X-Git-Tag: v3.3.0~38^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2bc417732c4142091e92fce07f93c4fff11173b1;p=thirdparty%2Fbootstrap.git code style fixes --- diff --git a/grunt/bs-commonjs-generator.js b/grunt/bs-commonjs-generator.js index 8ab309b332..e5173944ca 100644 --- a/grunt/bs-commonjs-generator.js +++ b/grunt/bs-commonjs-generator.js @@ -7,11 +7,10 @@ module.exports = function generateCommonJSModule(grunt, srcFiles, destFilepath) function srcPathToDestRequire(srcFilepath) { var requirePath = path.relative(destDir, srcFilepath); - return "require('"+requirePath+"')"; + return 'require(\'' + requirePath + '\')'; } var moduleOutputJs = srcFiles.map(srcPathToDestRequire).join('\n'); - try { fs.writeFileSync(destFilepath, moduleOutputJs); }