DEV: Remove unused variable.

Follow up to df1e6eed5a07f49eeda4c0bbd8c63d539aefdb3b..
This commit is contained in:
Guo Xiang Tan 2019-05-23 16:42:42 +08:00
parent b72cec188a
commit ca6c919299

View File

@ -97,7 +97,7 @@ module Jobs
raw.gsub!(/src=["']#{escaped_src}["']/i, "src='#{url}'")
if (original_path = Upload.extract_url(original_src)&.to_s) &&
(path = Upload.extract_url(url)&.to_s)
Upload.extract_url(url)&.to_s
raw.gsub!(
/src=["']\S*#{Regexp.escape(original_path)}["']/i,