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 2019/03/13 18:21:45 UTC

[cordova-ios] branch purplecabbage-patch-1 updated: whitespace

This is an automated email from the ASF dual-hosted git repository.

purplecabbage pushed a commit to branch purplecabbage-patch-1
in repository https://gitbox.apache.org/repos/asf/cordova-ios.git


The following commit(s) were added to refs/heads/purplecabbage-patch-1 by this push:
     new 5f003f9  whitespace
5f003f9 is described below

commit 5f003f909fe28bebbedd064405f0c81364fe7912
Author: Jesse MacFadyen <pu...@gmail.com>
AuthorDate: Wed Mar 13 11:21:40 2019 -0700

    whitespace
    
    I love how a little whitespace can bring the whole universe crashing to a halt.
---
 bin/templates/scripts/cordova/lib/prepare.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/templates/scripts/cordova/lib/prepare.js b/bin/templates/scripts/cordova/lib/prepare.js
index 278af0a..a15380e 100644
--- a/bin/templates/scripts/cordova/lib/prepare.js
+++ b/bin/templates/scripts/cordova/lib/prepare.js
@@ -1052,8 +1052,8 @@ function parseWhitelistUrlForATS (url, options) {
         var subdomain1 = '/*.'; // wildcard in hostname
         var subdomain2 = '*://*.'; // wildcard in hostname and protocol
         var subdomain3 = '*://'; // wildcard in protocol only
-        if(!href.pathname) {
-            return null;   
+        if (!href.pathname) {
+            return null;
         } else if (href.pathname.indexOf(subdomain1) === 0) {
             retObj.NSIncludesSubdomains = true;
             retObj.Hostname = href.pathname.substring(subdomain1.length);


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