refactor: remove redundant casting

This commit is contained in:
エリス 2024-12-29 01:41:40 +09:00
parent 3b0859def1
commit c175e4da4d
No known key found for this signature in database
GPG Key ID: 2E5FF17FB26AF7F2

View File

@ -178,13 +178,13 @@ public class CoreAndroid extends CordovaPlugin {
} }
else if (value.getClass().equals(String.class)) { else if (value.getClass().equals(String.class)) {
params.put(key, (String)value); params.put(key, value);
} }
else if (value.getClass().equals(Boolean.class)) { else if (value.getClass().equals(Boolean.class)) {
params.put(key, (Boolean)value); params.put(key, value);
} }
else if (value.getClass().equals(Integer.class)) { else if (value.getClass().equals(Integer.class)) {
params.put(key, (Integer)value); params.put(key, value);
} }
} }
} }