remove ! on reject

This commit is contained in:
epicsam123 2025-01-26 16:42:59 -05:00 committed by GitHub
parent 0fd480bae2
commit a77f083a0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,7 +43,7 @@ module Invidious::Routes::Misc
instance_list = Invidious::Jobs::InstanceListRefreshJob::INSTANCES["INSTANCES"] instance_list = Invidious::Jobs::InstanceListRefreshJob::INSTANCES["INSTANCES"]
# Filter out the current instance # Filter out the current instance
other_available_instances = instance_list.reject! { |_, domain| domain == CONFIG.domain } other_available_instances = instance_list.reject { |_, domain| domain == CONFIG.domain }
if other_available_instances.empty? if other_available_instances.empty?
# If the current instance is the only one, use the redirect URL as fallback # If the current instance is the only one, use the redirect URL as fallback