Skip to content

Commit

Permalink
Clean up redundant == false boolean expressions in Java
Browse files Browse the repository at this point in the history
Summary: The boolean expression `== false` can be simplified to negate (`!`) instead so fixing these to improve readability

Differential Revision: D66483977

fbshipit-source-id: 036ba60cc41894714cf1c58d4b37e69a669ec52c
  • Loading branch information
Corey Wu authored and facebook-github-bot committed Jan 14, 2025
1 parent 9d53c9a commit f1d68fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/com/facebook/soloader/NativeLibrary.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected NativeLibrary(List<String> libraryNames) {
@Nullable
public boolean loadLibraries() {
synchronized (mLock) {
if (mLoadLibraries == false) {
if (!mLoadLibraries) {
return mLibrariesLoaded;
}
try {
Expand Down

0 comments on commit f1d68fb

Please sign in to comment.