mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 15:03:38 +08:00
DEV: Remove unused variable.
Follow up to df1e6eed5a07f49eeda4c0bbd8c63d539aefdb3b..
This commit is contained in:
parent
b72cec188a
commit
ca6c919299
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user