mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-14 12:10:30 +00:00
Turn a nil to a string
Makes a `nil` a string inside of an expect in `define`, allowing `nil` to be passed.
This commit is contained in:
parent
61eb67849d
commit
8dbc930c2f
@ -42,7 +42,7 @@ for _, v in ipairs(valid_types) do valid_types[v] = true end
|
||||
-- will error.
|
||||
function define(name, options)
|
||||
expect(1, name, "string")
|
||||
expect(2, options, "table", nil)
|
||||
expect(2, options, "table", "nil")
|
||||
|
||||
if options then
|
||||
options = {
|
||||
|
Loading…
Reference in New Issue
Block a user