From d70a0bf1d191c9ccc455c478785c56be26986679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sen=C3=A9n=20Rodero=20Rodr=C3=ADguez?= <15726+Senen@users.noreply.github.com> Date: Thu, 22 Sep 2022 13:40:35 +0200 Subject: [PATCH] Remove instance variable as it is not used --- app/controllers/polls_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/polls_controller.rb b/app/controllers/polls_controller.rb index 0828fc9fb..ecb8ffadb 100644 --- a/app/controllers/polls_controller.rb +++ b/app/controllers/polls_controller.rb @@ -19,8 +19,7 @@ class PollsController < ApplicationController def show @questions = @poll.questions.for_render.sort_for_list - @commentable = @poll - @comment_tree = CommentTree.new(@commentable, params[:page], @current_order) + @comment_tree = CommentTree.new(@poll, params[:page], @current_order) end def stats