summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortechmetx11 <techmetx11@disroot.org>2023-01-15 16:26:51 +0100
committerSamantaz Fox <coding@samantaz.fr>2023-02-26 14:01:08 +0100
commit4ac263f1dfdc18e5de584d4fb8bbfd74141e2716 (patch)
treef1c8982e5f24b9ca4b47cf45ed12145039ecf0b4
parent8eca5b270ed10b6233371f5495cf059bc353dcb1 (diff)
downloadinvidious-4ac263f1dfdc18e5de584d4fb8bbfd74141e2716.tar.gz
invidious-4ac263f1dfdc18e5de584d4fb8bbfd74141e2716.tar.bz2
invidious-4ac263f1dfdc18e5de584d4fb8bbfd74141e2716.zip
Replace == with empty?
-rw-r--r--src/invidious/views/watch.ecr2
1 files changed, 1 insertions, 1 deletions
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>