You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2015/09/17 00:16:56 UTC

[05/12] cordova-browser git commit: fix lint errors

fix lint errors


Project: http://git-wip-us.apache.org/repos/asf/cordova-browser/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-browser/commit/29d3e7da
Tree: http://git-wip-us.apache.org/repos/asf/cordova-browser/tree/29d3e7da
Diff: http://git-wip-us.apache.org/repos/asf/cordova-browser/diff/29d3e7da

Branch: refs/heads/master
Commit: 29d3e7da576f14c57a91cba74b9a11ebc266f87a
Parents: 8550e5f
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Wed Sep 16 13:13:05 2015 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Wed Sep 16 13:13:05 2015 -0700

----------------------------------------------------------------------
 bin/lib/check_reqs.js                      | 2 +-
 bin/lib/create.js                          | 2 +-
 bin/lib/update.js                          | 7 ++++---
 bin/templates/project/cordova/lib/clean.js | 4 +---
 4 files changed, 7 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-browser/blob/29d3e7da/bin/lib/check_reqs.js
----------------------------------------------------------------------
diff --git a/bin/lib/check_reqs.js b/bin/lib/check_reqs.js
index 583ad0f..b264c41 100644
--- a/bin/lib/check_reqs.js
+++ b/bin/lib/check_reqs.js
@@ -23,4 +23,4 @@ under the License.
 
 module.exports.run = function() {
     return true;
-}
+};

http://git-wip-us.apache.org/repos/asf/cordova-browser/blob/29d3e7da/bin/lib/create.js
----------------------------------------------------------------------
diff --git a/bin/lib/create.js b/bin/lib/create.js
index fcde12b..71986c1 100644
--- a/bin/lib/create.js
+++ b/bin/lib/create.js
@@ -76,4 +76,4 @@ exports.createProject = function(project_path,package_name,project_name){
     ].forEach(function(f) { 
          shjs.chmod(755, path.join(project_path, 'cordova', f));
     });
-}
+};

http://git-wip-us.apache.org/repos/asf/cordova-browser/blob/29d3e7da/bin/lib/update.js
----------------------------------------------------------------------
diff --git a/bin/lib/update.js b/bin/lib/update.js
index 9367676..47b57d7 100644
--- a/bin/lib/update.js
+++ b/bin/lib/update.js
@@ -17,7 +17,7 @@
        under the License.
 */
 
-var Q      = require('Q'),
+var Q      = require('q'),
     create = require('./create'),
     fs     = require('fs'),
     shell = require('shelljs');
@@ -41,13 +41,14 @@ module.exports.run = function (argv) {
         shellfatal(shell.rm, '-rf', projectPath);
         create.createProject(projectPath);
     });
-}
+};
 
 function shellfatal(shellFunc) {
     var slicedArgs = Array.prototype.slice.call(arguments, 1);
+    var returnVal = null;
     try {
         shell.config.fatal = true;
-        var returnVal = shellFunc.apply(shell, slicedArgs);
+        returnVal = shellFunc.apply(shell, slicedArgs);
     }   
     finally {
         shell.config.fatal = false;

http://git-wip-us.apache.org/repos/asf/cordova-browser/blob/29d3e7da/bin/templates/project/cordova/lib/clean.js
----------------------------------------------------------------------
diff --git a/bin/templates/project/cordova/lib/clean.js b/bin/templates/project/cordova/lib/clean.js
index 78c75b6..2e4367d 100644
--- a/bin/templates/project/cordova/lib/clean.js
+++ b/bin/templates/project/cordova/lib/clean.js
@@ -42,7 +42,5 @@ exports.cleanProject = function(){
     catch(err) {
         console.log('could not remove '+platformBuildDir+' : '+err.message);
     }
-
-
-}
+};
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org