@@ -141,14 +141,14 @@ public boolean execute(String action, JSONArray args, CallbackContext callbackCo
141
141
return true ;
142
142
} else if (action .equals ("userCompletedAction" )) {
143
143
if (args .length () < 1 && args .length () > 2 ) {
144
- callbackContext .error (String .format ("Parameter mismatched. 1-2 is required but %d is given" , args . length () ));
144
+ callbackContext .error (String .format ("Parameter count mismatch" ));
145
145
return false ;
146
146
}
147
147
cordova .getActivity ().runOnUiThread (r );
148
148
return true ;
149
149
} else if (action .equals ("sendBranchEvent" )) {
150
150
if (args .length () < 1 && args .length () > 2 ) {
151
- callbackContext .error (String .format ("Parameter mismatched. 1-2 is required but %d is given" , args . length () ));
151
+ callbackContext .error (String .format ("Parameter count mismatch" ));
152
152
return false ;
153
153
}
154
154
cordova .getActivity ().runOnUiThread (r );
@@ -164,7 +164,7 @@ public boolean execute(String action, JSONArray args, CallbackContext callbackCo
164
164
return true ;
165
165
} else if (action .equals ("createBranchUniversalObject" )) {
166
166
if (args .length () != 1 ) {
167
- callbackContext .error (String .format ("Parameter mismatched. 1 is required but %d is given" , args . length () ));
167
+ callbackContext .error (String .format ("Parameter count mismatch" ));
168
168
return false ;
169
169
}
170
170
cordova .getActivity ().runOnUiThread (r );
@@ -180,21 +180,21 @@ public boolean execute(String action, JSONArray args, CallbackContext callbackCo
180
180
181
181
} else if (action .equals (("generateShortUrl" ))) {
182
182
if (args .length () != 3 ) {
183
- callbackContext .error (String .format ("Parameter mismatched. 3 is required but %d is given" , args . length () ));
183
+ callbackContext .error (String .format ("Parameter count mismatch" ));
184
184
return false ;
185
185
}
186
186
cordova .getActivity ().runOnUiThread (r );
187
187
return true ;
188
188
} else if (action .equals ("registerView" )) {
189
189
if (args .length () != 1 ) {
190
- callbackContext .error (String .format ("Parameter mismatched. 1 is required but %d is given" , args . length () ));
190
+ callbackContext .error (String .format ("Parameter count mismatch" ));
191
191
return false ;
192
192
}
193
193
cordova .getActivity ().runOnUiThread (r );
194
194
return true ;
195
195
} else if (action .equals ("showShareSheet" )) {
196
196
if (args .length () < 3 ) {
197
- callbackContext .error (String .format ("Parameter mismatched. 3 is required but %d is given" , args . length () ));
197
+ callbackContext .error (String .format ("Parameter count mismatch" ));
198
198
return false ;
199
199
}
200
200
cordova .getActivity ().runOnUiThread (r );
@@ -229,7 +229,7 @@ public boolean execute(String action, JSONArray args, CallbackContext callbackCo
229
229
230
230
} else if (action .equals ("getBranchQRCode" )) {
231
231
if (args .length () != 4 ) {
232
- callbackContext .error (String .format ("Parameter mismatched. 4 is required but %d is given" , args . length () ));
232
+ callbackContext .error (String .format ("Parameter count mismatch" ));
233
233
return false ;
234
234
}
235
235
cordova .getActivity ().runOnUiThread (r );
0 commit comments