mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 03:51:07 +08:00
DEV: Enable unless
cops
We discussed the use of `unless` internally and decided to enforce available rules from rubocop to restrict its most problematic uses.
This commit is contained in:

committed by
Loïc Guitaut

parent
87de3c2319
commit
f7c57fbc19
@ -114,7 +114,7 @@ class ImportScripts::Kunena < ImportScripts::Base
|
||||
cache_rows: false,
|
||||
)
|
||||
results.each do |u|
|
||||
next unless u["userid"].to_i > 0
|
||||
next if u["userid"].to_i <= 0
|
||||
user = @users[u["userid"].to_i]
|
||||
if user
|
||||
user[:bio] = u["signature"]
|
||||
|
Reference in New Issue
Block a user