mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
style: removed brackets
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user