1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-10-02 17:00:47 +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:
SkyTheCodeMaster 2021-07-04 20:54:55 -04:00 committed by GitHub
parent 61eb67849d
commit 8dbc930c2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = {