mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Enable Lint/ShadowingOuterLocalVariable for Rubocop.
This commit is contained in:
@@ -44,7 +44,7 @@ describe TopicStatusUpdater do
|
||||
topic = create_topic
|
||||
|
||||
called = false
|
||||
updater = -> (topic) { called = true }
|
||||
updater = -> (_) { called = true }
|
||||
|
||||
DiscourseEvent.on(:topic_closed, &updater)
|
||||
TopicStatusUpdater.new(topic, admin).update!("closed", true)
|
||||
|
||||
Reference in New Issue
Block a user