Skip to content

Commit

Permalink
Hotfix inconsistent code (#1775)
Browse files Browse the repository at this point in the history
  • Loading branch information
thegrb93 authored Jun 14, 2024
1 parent 1a22057 commit f4c4914
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/starfall/libs_sv/wire.lua
Original file line number Diff line number Diff line change
Expand Up @@ -407,12 +407,12 @@ function wire_library.adjustOutputs(names, types, descriptions)

for i = 1, #names do
local name = names[i]
if not isstring(name) then SF.Throw("Non-string output name: " .. name, 2) end
if not isstring(name) then SF.Throw("Non-string output name at index " .. i, 2) end
if not string.match(name, "^[%u][%a%d_]*$") then SF.Throw("Invalid output name: " .. name, 2) end
names_out[i] = name

local porttype = types[i]
if not isstring(porttype) then SF.Throw("Non-string output type: " .. porttype, 2) end
if not isstring(porttype) then SF.Throw("Non-string output type at index " .. i, 2) end
porttype = string.upper(porttype)
porttype = sfTypeToWireTypeTable[porttype] or porttype
if not outputConverters[porttype] then SF.Throw("Invalid/unsupported output type: " .. porttype, 2) end
Expand Down

0 comments on commit f4c4914

Please sign in to comment.