1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-15 04:30:29 +00:00

Merge pull request #848 from SkyTheCodeMaster/patch-3

Turn a nil to a string
This commit is contained in:
Jonathan Coates 2021-07-05 06:16:05 +01:00 committed by GitHub
commit 7086cb8a02
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. -- will error.
function define(name, options) function define(name, options)
expect(1, name, "string") expect(1, name, "string")
expect(2, options, "table", nil) expect(2, options, "table", "nil")
if options then if options then
options = { options = {