Use short circuit operators when possible

This commit is contained in:
Wiz
2021-12-31 20:09:52 -05:00
committed by dragonmacher
parent 510c4d14c7
commit bfa992a93c
27 changed files with 574 additions and 514 deletions

View File

@@ -287,7 +287,7 @@ public class DmgFileReader implements Closeable {
* If the entry is actually a directory, then -1 is returned.
*/
public long getLength( FSEntry entry ) {
if ( entry != null & entry.isFile() ) {
if (entry != null && entry.isFile()) {
FSFork mainFork = entry.asFile().getMainFork();
if ( mainFork.getLength() > 0 ) {
return mainFork.getLength();