-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Simplify multiple statements to a single line return statement #552
Conversation
hey @phillipj, |
Thanks, I'll have a look as soon as I've got some spare time. Please squash the commits, especially since the first commit introduces On Wednesday, 9 March 2016, Harendra Singh [email protected] wrote:
|
We don't need these 3 statements. We can simple return the output of context.lookup function. Even it is null, returning null instead of underfined seems to have no side effect.
Let me check if these changes provoke any edge case... |
It was not being asserted anywhere else, and I was suspecting that PR #552 was chaging current (and correct) behaviour.
It was not being asserted anywhere else, and I was suspecting that PR #552 was changing current (and correct) behaviour.
It was not being asserted anywhere else, and I was suspecting that PR #552 was changing current (and correct) behaviour.
It was not being asserted anywhere else, and I was suspecting that PR #552 was changing current (and correct) behaviour.
I believe these changes introduce incorrect behaviour, but I'm waiting to confirm so: #553. |
I don't really think we can simplify these lines, unless we want to provide a different rendering behaviour for values different than Let me know if I'm mistaken, closing the PR. |
I took this PR
and modified it to make it work.
Ran the test cases before pushing. All passed