Remove redundant code in embedded video component

When using `<%= `, `nil` is converted to an empty string, so there's no
need to explicitely return an empty string.
This commit is contained in:
Javi Martín
2024-05-19 04:41:16 +02:00
parent b07132d8d4
commit fee5b8a13c

View File

@@ -12,8 +12,6 @@ class Shared::EmbeddedVideoComponent < ApplicationComponent
def embedded_video_code def embedded_video_code
if match && match[2] if match && match[2]
"<iframe #{iframe_attributes}></iframe>" "<iframe #{iframe_attributes}></iframe>"
else
""
end end
end end