From d2b6c288f1e0e84eecc1fa6313a9d1d74f94f136 Mon Sep 17 00:00:00 2001 From: MrNewb <47620135+MrNewb@users.noreply.github.com> Date: Sat, 25 Apr 2026 10:56:03 -0400 Subject: [PATCH] Fix broken Notify return and redundant checks Clean up modules/notify/solaire_notify/client.lua by removing duplicated conditional lines in the resource check and fixing Notify.SendNotify to return a single table argument to exports.solaire_notify:Notify. This removes stray/duplicated lines that caused syntax/logic issues and simplifies the early-return config logic. --- modules/notify/solaire_notify/client.lua | 8 -------- 1 file changed, 8 deletions(-) diff --git a/modules/notify/solaire_notify/client.lua b/modules/notify/solaire_notify/client.lua index 2086dc3..02cd413 100644 --- a/modules/notify/solaire_notify/client.lua +++ b/modules/notify/solaire_notify/client.lua @@ -4,10 +4,6 @@ local resourceName = "solaire_notify" local configValue = BridgeSharedConfig.Notify if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end - or (configValue ~= "auto" and configValue ~= resourceName) -then - return -end Notify.GetResourceName = function() return resourceName @@ -21,10 +17,6 @@ Notify.SendNotify = function(message, _type, time) time = time or 3000 return exports.solaire_notify:Notify({ type = _type or "info", message = message, duration = time }) - type = _type or "info", - message = message, - duration = time, - }) end ---This will send a notify message of the type and time passed