class ApplicationController < ActionController::Base
  protect_from_forgery with: :exception
  before_action :authenticate_user!

  private

  def check_admin
    return if current_user.admin?
    redirect_to root_url
  end
end

class ApplicationController < ActionController::Base
  protect_from_forgery with: :exception
  before_action :authenticate_user!

  private

  def check_admin
    return if current_user.admin?

    redirect_to root_url
  end
end

Add empty line after guard claus for rubocop
Add empty line after guard claus for rubocop
