You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2015/03/03 08:37:39 UTC

[04/12] cordova-lib git commit: fixed minor errors so npm test runs

fixed minor errors so npm test runs


Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/6e24960f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/6e24960f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/6e24960f

Branch: refs/heads/CB-8551
Commit: 6e24960f06030c8f790f4bf03777a154e8ea6c0b
Parents: f919820
Author: Steve Gill <st...@gmail.com>
Authored: Fri Jan 23 17:31:37 2015 -0800
Committer: Steve Gill <st...@gmail.com>
Committed: Mon Jan 26 16:59:29 2015 -0800

----------------------------------------------------------------------
 cordova-lib/src/plugman/registry/registry.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/6e24960f/cordova-lib/src/plugman/registry/registry.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/plugman/registry/registry.js b/cordova-lib/src/plugman/registry/registry.js
index f72c109..7f9ff71 100644
--- a/cordova-lib/src/plugman/registry/registry.js
+++ b/cordova-lib/src/plugman/registry/registry.js
@@ -27,7 +27,7 @@ var npm = require('npm'),
     rc = require('rc'),
     Q = require('q'),
     request = require('request'),
-    pluginMapper = require('cordova-registry-mapper');
+    pluginMapper = require('cordova-registry-mapper'),
     home = process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE,
     events = require('../../events'),
     unpack = require('../../util/unpack'),
@@ -342,7 +342,7 @@ function fetchNPM(plugin, client) {
         var re = /([\w-]*\.[\w-]*\.[\w-]*\.[\w-]*[^@])/;
         var pluginID = plugin.match(re);
         //If true, pluginID is reverse domain style
-        if(pluginID != null) { 
+        if(pluginID !== null) { 
             //grab the @VERSION from the end of the plugin string if it exists
             re = /(@.*)/;
             var versionStr = plugin.match(re);
@@ -353,7 +353,7 @@ function fetchNPM(plugin, client) {
             var packageName = pluginMapper[pluginID[0]];
             if(packageName) {
                 //if @VERSION exists, concat it to packageName
-                if(versionStr != null) {
+                if(versionStr !== null) {
                     packageName += versionStr[0];
                 }
                 events.emit('verbose', 'Converted ' + plugin + ' to ' + packageName + ' for npm fetch');


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