0
0
Fork 0

Apply Rubocop Style/NegatedIfElseCondition (#23451)

This commit is contained in:
Nick Schonning 2023-02-08 01:07:36 -05:00 committed by GitHub
parent 8c1b65c7dd
commit f68bb52556
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 12 deletions

View file

@ -82,7 +82,7 @@ class FetchOEmbedService
return if @endpoint_url.blank?
body = Request.new(:get, @endpoint_url).perform do |res|
res.code != 200 ? nil : res.body_with_limit
res.code == 200 ? res.body_with_limit : nil
end
validate(parse_for_format(body)) if body.present?