You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2019/11/28 13:14:55 UTC

[cordova-ios] 01/06: chore: delete some useless characters (#728)

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

erisu pushed a commit to branch 5.1.x-temp
in repository https://gitbox.apache.org/repos/asf/cordova-ios.git

commit 0f865666db5ba274d2044ba1aa8d19576f61e2df
Author: Raphael von der GrĂ¼n <ra...@gmail.com>
AuthorDate: Wed Nov 27 16:57:15 2019 +0100

    chore: delete some useless characters (#728)
---
 bin/templates/scripts/cordova/Api.js         | 4 ++--
 bin/templates/scripts/cordova/lib/Podfile.js | 3 ---
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/bin/templates/scripts/cordova/Api.js b/bin/templates/scripts/cordova/Api.js
index 4f85f32..e45b782 100644
--- a/bin/templates/scripts/cordova/Api.js
+++ b/bin/templates/scripts/cordova/Api.js
@@ -136,7 +136,7 @@ Api.createPlatform = function (destination, config, options, events) {
             });
     } catch (e) {
         events.emit('error', 'createPlatform is not callable from the iOS project API.');
-        throw (e);
+        throw e;
     }
     return result;
 };
@@ -170,7 +170,7 @@ Api.updatePlatform = function (destination, options, events) {
             });
     } catch (e) {
         events.emit('error', 'updatePlatform is not callable from the iOS project API, you will need to do this manually.');
-        throw (e);
+        throw e;
     }
     return result;
 };
diff --git a/bin/templates/scripts/cordova/lib/Podfile.js b/bin/templates/scripts/cordova/lib/Podfile.js
index 2953e18..7106ff6 100644
--- a/bin/templates/scripts/cordova/lib/Podfile.js
+++ b/bin/templates/scripts/cordova/lib/Podfile.js
@@ -418,9 +418,6 @@ Podfile.prototype.install = function (requirementsCheckerFunction) {
         })
         .then(function () { // done
             events.emit('verbose', '==== pod install end ====\n');
-        })
-        .fail(function (error) {
-            throw error;
         });
 };
 


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