From f1d68fbfe1e67c9a1e86e1b997d1300d114bcf4d Mon Sep 17 00:00:00 2001 From: Corey Wu Date: Tue, 14 Jan 2025 13:32:17 -0800 Subject: [PATCH] Clean up redundant == false boolean expressions in Java Summary: The boolean expression `== false` can be simplified to negate (`!`) instead so fixing these to improve readability Differential Revision: D66483977 fbshipit-source-id: 036ba60cc41894714cf1c58d4b37e69a669ec52c --- java/com/facebook/soloader/NativeLibrary.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/com/facebook/soloader/NativeLibrary.java b/java/com/facebook/soloader/NativeLibrary.java index d838fbb..2c0a24e 100644 --- a/java/com/facebook/soloader/NativeLibrary.java +++ b/java/com/facebook/soloader/NativeLibrary.java @@ -53,7 +53,7 @@ protected NativeLibrary(List libraryNames) { @Nullable public boolean loadLibraries() { synchronized (mLock) { - if (mLoadLibraries == false) { + if (!mLoadLibraries) { return mLibrariesLoaded; } try {