simplified a config validation assert

This commit is contained in:
Mikayla Fischler
2024-04-11 20:30:54 -04:00
parent dfc1ee6497
commit 2aa52d2e2c
6 changed files with 6 additions and 6 deletions

View File

@@ -78,7 +78,7 @@ function supervisor.load_config()
if type(config.AuthKey) == "string" then
local len = string.len(config.AuthKey)
cfv.assert_eq(len == 0 or len >= 8, true)
cfv.assert(len == 0 or len >= 8)
end
cfv.assert_type_int(config.LogMode)