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:
@@ -12,8 +12,6 @@ class Shared::EmbeddedVideoComponent < ApplicationComponent
|
||||
def embedded_video_code
|
||||
if match && match[2]
|
||||
"<iframe #{iframe_attributes}></iframe>"
|
||||
else
|
||||
""
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user