mirror of
https://github.com/revanced/jadb.git
synced 2024-06-10 15:17:52 +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…
Reference in New Issue
Block a user