about summary refs log tree commit diff
path: root/README.md
diff options
context:
space:
mode:
authorEmily Strickland <github@emily.st>2022-11-11 12:22:28 -0800
committerGitHub <noreply@github.com>2022-11-11 21:22:28 +0100
commit96f51e593f2609579b8155d971bcbc5ab9e7cd4c (patch)
tree17084096e68d03234d20a0ac0fc70cab5323ece2 /README.md
parent31005aad12c6a915a00501765a6dab25878326cb (diff)
Guard against error extracting `body` from URL (#20428)
If `Nokogiri::HTML(value).at_xpath('//body')` fails to find the `body` element, it will return `nil`. We can guard against that with an early return. Avoids calling `children` on `Nilclass` in those cases.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions