--
Ticket URL: <https://code.djangoproject.com/ticket/28907>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* Attachment "less_ifs.patch" added.
Comment (by Jaap Roes):
This would be easier to review if it was a pull request.
In the patch I see at least one case where the `if` condition should not
be eliminated because it also needs to catch `None` values.
--
Ticket URL: <https://code.djangoproject.com/ticket/28907#comment:1>
* component: Uncategorized => Core (Other)
* stage: Unreviewed => Ready for checkin
Comment:
[https://github.com/django/django/pull/9445 PR]. I removed the test
changes from the patch as those don't work as Jaap mentioned.
--
Ticket URL: <https://code.djangoproject.com/ticket/28907#comment:2>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"02d9419fe34eaa4d41d8a8df93373f286a36a2ae" 02d9419f]:
{{{
#!CommitTicketReference repository=""
revision="02d9419fe34eaa4d41d8a8df93373f286a36a2ae"
Fixed #28907 -- Removed unnecessary if statements.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/28907#comment:3>
Comment (by Дилян Палаузов):
Indeed, I have not thought on the cases, where the {{{if value:}}} can be
{{{None}}}.
--
Ticket URL: <https://code.djangoproject.com/ticket/28907#comment:4>