style: removed brackets

This commit is contained in:
Metee Tanathip
2024-03-01 10:04:36 +07:00
parent 6b45a1a597
commit ffac35cdfe
+3 -3
View File
@@ -109,7 +109,7 @@ end
function ESX.ValidateType(value, ...)
local types = { ... }
if (#types == 0) then return true end
if #types == 0 then return true end
local mapType = {}
for i = 1, #types, 1 do
@@ -120,9 +120,9 @@ function ESX.ValidateType(value, ...)
local valueType = type(value)
local matches = (mapType[valueType] ~= nil)
local matches = mapType[valueType] ~= nil
if not (matches) then
if not matches then
local requireTypes = table.concat(types, " or ")
local errorMessage = ("bad value (%s expected, got %s)"):format(requireTypes, valueType)