-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(tools): separate table related functions from utils #11723
Conversation
1de0cd7
to
ffdcfc4
Compare
-- *** NOTE *** string-keys containing integers are considered valid array entries! | ||
-- @param t The table to check | ||
-- @return Returns `true` if the table is an array, `false` otherwise | ||
function _M.is_lapis_array(t) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why the original code has two same functions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have the same feeling with you, but this PR is refactoring, won't change anything.
After this PR, we could check the code carefully.
ffdcfc4
to
540afc0
Compare
540afc0
to
03e0f39
Compare
Summary
This PR is a try to refactor the big
tools.utils.lua
, now it moves the functions of table into a separated module.KAG-2739
Checklist
changelog/unreleased/kong
orskip-changelog
label added on PR if changelog is unnecessary. README.mdFull changelog
Issue reference
Fix #[issue number]