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

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


The following commit(s) were added to refs/heads/4.5.x by this push:
     new 253c0c1  PodsJson.increment/decrement has an error (#424)
253c0c1 is described below

commit 253c0c19f4ebc588d98d6e790205ae5b58996280
Author: Mark Marijnissen <markmarijnis...@gmail.com>
AuthorDate: Wed Jan 9 06:39:14 2019 +0100

    PodsJson.increment/decrement has an error (#424)
---
 bin/templates/scripts/cordova/lib/PodsJson.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/templates/scripts/cordova/lib/PodsJson.js 
b/bin/templates/scripts/cordova/lib/PodsJson.js
index 0470527..f88d948 100644
--- a/bin/templates/scripts/cordova/lib/PodsJson.js
+++ b/bin/templates/scripts/cordova/lib/PodsJson.js
@@ -86,7 +86,7 @@ PodsJson.prototype.increment = function (name) {
     var val = this.get(name);
     if (val) {
         val.count++;
-        this.setJson(val);
+        this.setJson(name, val);
     }
 };
 
@@ -97,7 +97,7 @@ PodsJson.prototype.decrement = function (name) {
         if (val.count <= 0) {
             this.remove(name);
         } else {
-            this.setJson(val);
+            this.setJson(name, val);
         }
     }
 };


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

Reply via email to