DEV: Remove redundant case in import script (#22882)

This commit is contained in:
Penar Musaraj 2023-07-31 14:52:06 -04:00 committed by GitHub
parent 7ecaf6295d
commit 26a8e7da28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -994,11 +994,7 @@ SQL
end
if l["href"]
if permalink && permalink.target_url
l["href"] = permalink.target_url
elsif l["href"] =~ %r{^/gartner/attachments/gartner/([^.]*).(\w*)}
linked_upload = "#{$1}.#{$2}"
end
l["href"] = permalink.target_url if permalink && permalink.target_url
end
elsif l["src"]
# we need an upload here