aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/CHANGELOG.md
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2019-02-25 14:25:43 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2019-02-25 14:25:43 -0800
commitbcf49299ff3afcb08ba5e155cedeb62a8b79f1fa (patch)
tree7e990e3a60c21b9d7b10595d67db26a4e357127e /activesupport/CHANGELOG.md
parentc0c1441144aa5e477b3419b033e43c94adf7cc0c (diff)
downloadrails-bcf49299ff3afcb08ba5e155cedeb62a8b79f1fa.tar.gz
rails-bcf49299ff3afcb08ba5e155cedeb62a8b79f1fa.tar.bz2
rails-bcf49299ff3afcb08ba5e155cedeb62a8b79f1fa.zip
Remove potential `variants` mutation in `decorate`
Even if the template is constructed with a `nil` variant, the array it constructs will never be `empty?`: https://github.com/rails/rails/blob/56b030605b4d968077a4ddb96b4ab619e75fb999/actionview/lib/action_view/template.rb#L152 We get an array that is `[nil]`, which is not empty, so this conditional is never true.
Diffstat (limited to 'activesupport/CHANGELOG.md')
0 files changed, 0 insertions, 0 deletions