-
Notifications
You must be signed in to change notification settings - Fork 248
fix: do not mutate std.removeAt parameters #812
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
Conversation
794cad0 to
b961f92
Compare
…r. (#437) Motivation: Add a test for std.removeAt, which should not modify the parameter. ported from go-jsonnet refs: google/go-jsonnet#812
|
@johnbartholomew may I kindly ask for your review? |
johnbartholomew
left a comment
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.
Looks good, just a file formatting nit (missing newline at end of file).
| return nil, err | ||
| } | ||
|
|
||
| newArr := append(arr.elements[:idx], arr.elements[idx+1:]...) |
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.
Go's funky append() behaviour strikes again.
b961f92 to
9246e24
Compare
9246e24 to
268c15a
Compare
|
Thanks for the fix! |
Resolves #807