Fix linting error

This commit is contained in:
Erik Reider
2022-05-07 15:36:40 +02:00
parent 2a07bd7487
commit da6d1efe6e

View File

@@ -68,7 +68,7 @@ namespace SwayNotificationCenter {
public string app_name { get; set; } public string app_name { get; set; }
public uint32 replaces_id { get; set; } public uint32 replaces_id { get; set; }
public string app_icon { get; set; } public string app_icon { get; set; }
public Action? default_action { get; set; } public Action ? default_action { get; set; }
public string summary { get; set; } public string summary { get; set; }
public string body { get; set; } public string body { get; set; }
public HashTable<string, Variant> hints { get; set; } public HashTable<string, Variant> hints { get; set; }
@@ -134,7 +134,7 @@ namespace SwayNotificationCenter {
s_hints (); s_hints ();
Array<Action> ac_array = new Array<Action>(); Array<Action> ac_array = new Array<Action> ();
if (actions.length > 1 && actions.length % 2 == 0) { if (actions.length > 1 && actions.length % 2 == 0) {
for (int i = 0; i < actions.length; i++) { for (int i = 0; i < actions.length; i++) {
var action = new Action (); var action = new Action ();
@@ -242,7 +242,7 @@ namespace SwayNotificationCenter {
params.set ("app_name", app_name); params.set ("app_name", app_name);
params.set ("replaces_id", replaces_id.to_string ()); params.set ("replaces_id", replaces_id.to_string ());
params.set ("app_icon", app_icon); params.set ("app_icon", app_icon);
params.set ("default_action", default_action?.to_string ()); params.set ("default_action", default_action ? .to_string ());
params.set ("summary", summary); params.set ("summary", summary);
params.set ("body", "\t" + body); params.set ("body", "\t" + body);
string[] _hints = {}; string[] _hints = {};