Skip to content

Invidious is an alternative front-end to YouTube

Replace == with empty?

techmetx114ac263f1dfdc
diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr
index c23a9552..1fc79495 100644
--- a/src/invidious/views/watch.ecr
+++ b/src/invidious/views/watch.ecr
@@ -181,7 +181,7 @@ we're going to need to do it here in order to allow for translations.
<% end %>
</p>
<% if video.license %>
- <% if video.license == "" %>
+ <% if video.license.empty? %>
<p id="license"><%= translate(locale, "License: ") %><%= translate(locale, "Standard YouTube license") %></p>
<% else %>
<p id="license"><%= translate(locale, "License: ") %><%= video.license %></p>