Problem/Motivation
In FormBuilder::formBuilder function the variable $request is assigned twice with the same vaue:
$request = $this->requestStack->getCurrentRequest();
Probably, one call is enough.
Proposed resolution
Remove the second call.
Remaining tasks
Provide patch.
Ready!
User interface changes
None.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|
Issue fork drupal-3219541
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 9.2.x
changes, plain diff MR !812 /
changes, plain diff MR !810
- 3219541-remove-redudante-call
changes, plain diff MR !811
Comments
Comment #7
tunicMR created (after w few wrong attempts). Let's see what tests say.
Comment #8
tunicAdding the MR patch to trigger tests.
Comment #9
tunicComment #10
tunicGiven that all tests pass and the commit is trivial I'll be bold and move it to RTBC.
Comment #11
longwaveYou shouldn't set your own patch to RTBC :)
But this is small and simple, the
$requestvariable is set exactly the same way at the top of the method so this line is redundant, therefore this is RTBC.Comment #12
tunicYou are right, I should not set RTBC on my own patches... but it was so trivial that I broke the law this time.
Thanks for reviewing :)
Comment #13
longwaveComment #15
catchCommitted/pushed to 9.3.x, thanks!