mirror of
https://github.com/revanced/jadb.git
synced 2025-05-28 04:20:17 +02:00
Simplify "if"s
This commit is contained in:
parent
d5e464e52d
commit
cb989acfa9
@ -210,10 +210,8 @@ public class JadbDevice {
|
||||
return false;
|
||||
JadbDevice other = (JadbDevice) obj;
|
||||
if (serial == null) {
|
||||
if (other.serial != null)
|
||||
return false;
|
||||
} else if (!serial.equals(other.serial))
|
||||
return false;
|
||||
return true;
|
||||
return other.serial == null;
|
||||
}
|
||||
return serial.equals(other.serial);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user