From 8ad12c33a8a46a17e76696da687b0da43078bfde Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 11 Aug 2024 05:02:03 +0200 Subject: [PATCH] Fix lint nits --- app/controllers/about_controller.rb | 6 +++--- app/views/about/index.html.haml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/about_controller.rb b/app/controllers/about_controller.rb index 45cd7669..06b59b9d 100644 --- a/app/controllers/about_controller.rb +++ b/app/controllers/about_controller.rb @@ -2,9 +2,9 @@ class AboutController < ApplicationController def index - if Retrospring::Config.advanced_frontpage_enabled? - render template: "about/index_advanced" - end + return unless Retrospring::Config.advanced_frontpage_enabled? + + render template: "about/index_advanced" end def about diff --git a/app/views/about/index.html.haml b/app/views/about/index.html.haml index 7925968e..5ddf24c1 100644 --- a/app/views/about/index.html.haml +++ b/app/views/about/index.html.haml @@ -28,5 +28,5 @@ = f.check_box :remember_me = f.primary t("voc.login"), class: "btn btn-primary d-grid w-100" - + = render "shared/links"