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/common-2.0.x Commit: 3a810d1887bc488e8e9e9dfacdc6e86a80b4b318 Parents: 07001dc Author: Shazron Abdullah <shaz...@gmail.com> Authored: Mon Feb 20 17:47:14 2017 -0800 Committer: Steve Gill <stevengil...@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-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org