refactor: remove pointless boolean expression

This commit is contained in:
エリス 2024-12-29 02:42:28 +09:00
parent c175e4da4d
commit f749e6bdd1
No known key found for this signature in database
GPG Key ID: 2E5FF17FB26AF7F2

View File

@ -92,7 +92,7 @@ public class SplashScreenPlugin extends CordovaPlugin {
JSONArray args, JSONArray args,
CallbackContext callbackContext CallbackContext callbackContext
) throws JSONException { ) throws JSONException {
if (action.equals("hide") && autoHide == false) { if (action.equals("hide") && !autoHide) {
/* /*
* The `.hide()` method can only be triggered if the `splashScreenAutoHide` * The `.hide()` method can only be triggered if the `splashScreenAutoHide`
* is set to `false`. * is set to `false`.