From 2bc417732c4142091e92fce07f93c4fff11173b1 Mon Sep 17 00:00:00 2001 From: James Friend Date: Thu, 28 Aug 2014 09:54:51 +0800 Subject: [PATCH] code style fixes --- grunt/bs-commonjs-generator.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); }