mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Remove workaround for getBoolean from JsonRpcLocalCommand
This commit is contained in:
parent
f44b148946
commit
c9f5550d18
17 changed files with 22 additions and 31 deletions
|
@ -54,10 +54,10 @@ public class DaemonCommand implements MultiLocalCommand {
|
|||
public void handleCommand(
|
||||
final Namespace ns, final Manager m, final OutputWriter outputWriter
|
||||
) throws CommandException {
|
||||
boolean ignoreAttachments = ns.getBoolean("ignore-attachments");
|
||||
boolean ignoreAttachments = Boolean.TRUE.equals(ns.getBoolean("ignore-attachments"));
|
||||
|
||||
DBusConnection.DBusBusType busType;
|
||||
if (ns.getBoolean("system")) {
|
||||
if (Boolean.TRUE.equals(ns.getBoolean("system"))) {
|
||||
busType = DBusConnection.DBusBusType.SYSTEM;
|
||||
} else {
|
||||
busType = DBusConnection.DBusBusType.SESSION;
|
||||
|
@ -83,10 +83,10 @@ public class DaemonCommand implements MultiLocalCommand {
|
|||
public void handleCommand(
|
||||
final Namespace ns, final List<Manager> managers, final SignalCreator c, final OutputWriter outputWriter
|
||||
) throws CommandException {
|
||||
boolean ignoreAttachments = ns.getBoolean("ignore-attachments");
|
||||
boolean ignoreAttachments = Boolean.TRUE.equals(ns.getBoolean("ignore-attachments"));
|
||||
|
||||
DBusConnection.DBusBusType busType;
|
||||
if (ns.getBoolean("system")) {
|
||||
if (Boolean.TRUE.equals(ns.getBoolean("system"))) {
|
||||
busType = DBusConnection.DBusBusType.SYSTEM;
|
||||
} else {
|
||||
busType = DBusConnection.DBusBusType.SESSION;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue