From 131f82d9ac816e8a67184c1d780bc696e2344169 Mon Sep 17 00:00:00 2001 From: Maciek Borzecki Date: Wed, 29 Jan 2020 22:05:02 +0100 Subject: [PATCH] mconnect: fix formatting Signed-off-by: Maciek Borzecki --- src/mconnect/device.vala | 18 ++++++++---------- src/mconnect/devicemanager-proxy.vala | 3 ++- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/mconnect/device.vala b/src/mconnect/device.vala index 4fb696a..917eab1 100644 --- a/src/mconnect/device.vala +++ b/src/mconnect/device.vala @@ -133,10 +133,9 @@ class Device : Object { this.device_type = disc.device_type; this.protocol_version = disc.protocol_version; this.tcp_port = disc.tcp_port; - this.outgoing_capabilities = new ArrayList.wrap ( - disc.outgoing_capabilities); - this.incoming_capabilities = new ArrayList.wrap ( - disc.incoming_capabilities); + this.outgoing_capabilities = new ArrayList.wrap (disc.outgoing_capabilities); + + this.incoming_capabilities = new ArrayList.wrap (disc.incoming_capabilities); debug ("new device: %s", this.to_string ()); } @@ -177,12 +176,11 @@ class Device : Object { throw e; } } - dev.outgoing_capabilities = new ArrayList.wrap ( - cache.get_string_list (name, - "outgoing_capabilities")); - dev.incoming_capabilities = new ArrayList.wrap ( - cache.get_string_list (name, - "incoming_capabilities")); + dev.outgoing_capabilities = new ArrayList.wrap (cache.get_string_list (name, + "outgoing_capabilities")); + + dev.incoming_capabilities = new ArrayList.wrap (cache.get_string_list (name, + "incoming_capabilities")); var host = new InetAddress.from_string (last_ip_str); if (host == null) { diff --git a/src/mconnect/devicemanager-proxy.vala b/src/mconnect/devicemanager-proxy.vala index 16a016f..761aa43 100644 --- a/src/mconnect/devicemanager-proxy.vala +++ b/src/mconnect/devicemanager-proxy.vala @@ -25,7 +25,8 @@ class DeviceManagerDBusProxy : Object { owned get { return Core.instance ().certificate.certificate_pem; } - private set {} + private set { + } } public signal void device_added (string path);