Optimization code (#697)

This judgment condition has no use.
This commit is contained in:
任跃兵 2019-11-15 03:24:10 +08:00 committed by Tim Brust
parent f0c9814c04
commit e42fedc820

View File

@ -127,7 +127,7 @@ public class CordovaBridge {
}
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));