Skip to content

Commit

Permalink
Optimization code (#697)
Browse files Browse the repository at this point in the history
This judgment condition has no use.
  • Loading branch information
cnryb authored and timbru31 committed Nov 14, 2019
1 parent f0c9814 commit e42fedc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/src/org/apache/cordova/CordovaBridge.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public void reset() {
}

public String promptOnJsPrompt(String origin, String message, String defaultValue) {
if (defaultValue != null && defaultValue.length() > 3 && defaultValue.startsWith("gap:")) {
if (defaultValue != null && defaultValue.startsWith("gap:")) {
JSONArray array;
try {
array = new JSONArray(defaultValue.substring(4));
Expand Down

0 comments on commit e42fedc

Please sign in to comment.