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