mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-10 15:32:23 +05:30
Use if/else instead of return in search route
This commit is contained in:
parent
a2f5342a83
commit
3de92b337d
@ -45,9 +45,7 @@ class Invidious::Routes::Search < Invidious::Routes::BaseRoute
|
||||
# Display the full page search box implemented in #1977
|
||||
env.set "search", ""
|
||||
templated "search_homepage", navbar_search: false
|
||||
return
|
||||
end
|
||||
|
||||
else
|
||||
page = env.params.query["page"]?.try &.to_i?
|
||||
page ||= 1
|
||||
|
||||
@ -69,3 +67,4 @@ class Invidious::Routes::Search < Invidious::Routes::BaseRoute
|
||||
templated "search"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user