mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 02:04:53 +08:00
DEV: Add a test for the "duplicate link" message (#21139)
A followup to cb1e95cd3d16c1550596cee33ef361402d1bec0b --- `warning_message = nil` in the rb file was an unused variable
This commit is contained in:
@ -22,7 +22,6 @@ class ComposerMessagesController < ApplicationController
|
||||
usernames = params.require(:usernames)
|
||||
users = ComposerMessagesFinder.user_not_seen_in_a_while(usernames)
|
||||
user_count = users.count
|
||||
warning_message = nil
|
||||
|
||||
if user_count > 0
|
||||
message_locale =
|
||||
|
Reference in New Issue
Block a user