mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 12:01:38 +00:00
Strip duplicate APIs in request
This commit is contained in:
parent
b98af57ec5
commit
57b37f1a4a
1 changed files with 1 additions and 1 deletions
|
|
@ -263,7 +263,7 @@ function API.new(app)
|
|||
-- Sanitize request
|
||||
local sanitizedApis = {}
|
||||
for _, api in apis do
|
||||
if Rojo._apiDescriptions[api] ~= nil then
|
||||
if Rojo._apiDescriptions[api] ~= nil and table.find(sanitizedApis, api) == nil then
|
||||
table.insert(sanitizedApis, api)
|
||||
else
|
||||
warn(string.format("Rojo.%s is not a valid API", tostring(api)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue