From 3b82b2eb9cb4e848c6c0dc17220748dd3dc71547 Mon Sep 17 00:00:00 2001 From: Dutchman101 Date: Sun, 2 Jun 2024 13:59:37 +0200 Subject: [PATCH] Fix lint (trailing space) --- [admin]/admin/server/admin_server.lua | 4 ++-- [admin]/admin/server/admin_sync.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[admin]/admin/server/admin_server.lua b/[admin]/admin/server/admin_server.lua index aa3e93014..ef6aaf804 100644 --- a/[admin]/admin/server/admin_server.lua +++ b/[admin]/admin/server/admin_server.lua @@ -675,9 +675,9 @@ local aAdminRights = { } addEvent ( "aAdmin", true ) addEventHandler ( "aAdmin", root, function ( action, ... ) - if not action then + if not action then return - end + end if checkClient( aAdminRights[action] or true, source, 'aAdmin', action ) then return end diff --git a/[admin]/admin/server/admin_sync.lua b/[admin]/admin/server/admin_sync.lua index cfc35b058..bee57e357 100644 --- a/[admin]/admin/server/admin_sync.lua +++ b/[admin]/admin/server/admin_sync.lua @@ -58,9 +58,9 @@ function aSynchCoroutineFunc( type, data, typeOfTag, banSearchTag ) end end elseif ( type == "resources" ) then - if not hasObjectPermissionTo( source, "general.tab_resources" ) then + if not hasObjectPermissionTo( source, "general.tab_resources" ) then return - end + end local resourceTable = getResources() local tick = getTickCount() local antiCorMessageSpam = 0