Skip to content

Commit

Permalink
Move the resultString outside the inner try block
Browse files Browse the repository at this point in the history
Following up on ebaf266
I created two `try/catch` blocks but didn't move the relativeURL out. Argh! commit churn!
  • Loading branch information
shankari authored Aug 29, 2024
1 parent ebaf266 commit d80980b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/android/CommunicationHelperPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ public boolean execute(String action, JSONArray data, final CallbackContext call
cordova.getThreadPool().execute(new Runnable() {
public void run() {
try {
String resultString = CommunicationHelper.pushGetJSON(ctxt, fullURL, filledMessage);
try {
String resultString = CommunicationHelper.pushGetJSON(ctxt, fullURL, filledMessage);
callbackContext.success(new JSONObject(resultString));
} catch (JSONException e) {
callbackContext.error("While pushing/getting from server, "
Expand Down

0 comments on commit d80980b

Please sign in to comment.