cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [01/16] cordova-lib git commit: CB-11346 - Remove known platforms check for Platform API
Date Tue, 21 Mar 2017 20:19:17 GMT
Repository: cordova-lib
Updated Branches:
  refs/heads/master 07001dc4e -> da952e074


CB-11346 - Remove known platforms check for Platform API


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

Branch: refs/heads/master
Commit: 3a810d1887bc488e8e9e9dfacdc6e86a80b4b318
Parents: 07001dc
Author: Shazron Abdullah <shazron@gmail.com>
Authored: Mon Feb 20 17:47:14 2017 -0800
Committer: Steve Gill <stevengill97@gmail.com>
Committed: Fri Mar 10 14:50:00 2017 -0800

----------------------------------------------------------------------
 cordova-lib/src/platforms/PlatformApiPoly.js | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/3a810d18/cordova-lib/src/platforms/PlatformApiPoly.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/platforms/PlatformApiPoly.js b/cordova-lib/src/platforms/PlatformApiPoly.js
index dc78113..3477a0f 100644
--- a/cordova-lib/src/platforms/PlatformApiPoly.js
+++ b/cordova-lib/src/platforms/PlatformApiPoly.js
@@ -55,9 +55,6 @@ function PlatformApiPoly(platform, platformRootDir, events) {
     this.platform = platform;
     this.events = events || require('cordova-common').events;
 
-    if (!(platform in knownPlatforms))
-        throw new CordovaError('Unknown platform ' + platform);
-
     var ParserConstructor = require(knownPlatforms[platform].parser_file);
     this._parser = new ParserConstructor(this.root);
     this._handler = require(knownPlatforms[platform].handler_file);


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


Mime
View raw message