No need for this check since we're handling that condition above

This commit is contained in:
Herohtar 2018-12-14 10:24:55 -06:00
parent 57c35cb8cc
commit e704c6a412
No known key found for this signature in database
GPG key ID: 5C362C8125768A2B

View file

@ -52,7 +52,7 @@ public class SendCommand implements DbusCommand {
return 1;
}
if (ns.getBoolean("endsession") && ns.getList("recipient") != null && ns.getList("recipient").size() > 0) {
if (ns.getBoolean("endsession")) {
try {
signal.sendEndSessionMessage(ns.<String>getList("recipient"));
return 0;