From 26a8e7da2899f9e9bbc6fbffc7c47b2543e9e862 Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Mon, 31 Jul 2023 14:52:06 -0400 Subject: [PATCH] DEV: Remove redundant case in import script (#22882) --- script/import_scripts/lithium.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/script/import_scripts/lithium.rb b/script/import_scripts/lithium.rb index ee0f62f13eb..35c6785c21c 100644 --- a/script/import_scripts/lithium.rb +++ b/script/import_scripts/lithium.rb @@ -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