remove unneeded variable assignment

remove unneeded variable assignment

From 0ee822c55066e092c8e8ae0c6366e62c2c53e115 Mon Sep 17 00:00:00 2001
From: Arpit Jalan <arpit@techapj.com>
Date: Sun, 25 Nov 2018 23:36:34 +0530
Subject: [PATCH] remove unneeded variable assignment


diff --git a/spec/requests/admin/flags_controller_spec.rb b/spec/requests/admin/flags_controller_spec.rb
index 75f58ee..0e5d91d 100644
--- a/spec/requests/admin/flags_controller_spec.rb
+++ b/spec/requests/admin/flags_controller_spec.rb
@@ -93,7 +93,7 @@ RSpec.describe Admin::FlagsController do
       SiteSetting.queue_jobs = false
       category.update_column(:topic_id, first_post.topic_id)
 
-      post_action = PostAction.act(user, first_post, PostActionType.types[:spam], message: 'bad')
+      PostAction.act(user, first_post, PostActionType.types[:spam], message: 'bad')
 
       post "/admin/flags/agree/#{first_post.id}.json", params: { action_on_post: 'delete' }
       expect(response.status).to eq(403)

GitHub

1 Like

Note, I usually find these on save cause I run files via ale in vim that runs this thing, various editors should have something similar

3 Likes