Skip to content

Commit

Permalink
ddl: remove redundant check
Browse files Browse the repository at this point in the history
"check_schema_format" is already the first step of "check_schema".
  • Loading branch information
DifferentialOrange authored and AnaNek committed Jun 8, 2023
1 parent ad41a69 commit 8823441
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions ddl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,6 @@ local function _set_schema(schema)
end

local function set_schema(schema)
local ok, err = check_schema_format(schema)
if not ok then
return nil, err
end

local ok, err = check_schema(schema)
if not ok then
return nil, err
Expand Down

0 comments on commit 8823441

Please sign in to comment.