mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 17:03:44 +08:00
fix my lint errors
This commit is contained in:
parent
7e5f5a0b6b
commit
beef0d9dd2
|
@ -33,7 +33,7 @@ class DbHelper
|
||||||
column_name = rc["column_name"]
|
column_name = rc["column_name"]
|
||||||
result = connection.async_exec("SELECT #{column_name} FROM #{table_name} WHERE #{column_name} LIKE $1", args) rescue nil
|
result = connection.async_exec("SELECT #{column_name} FROM #{table_name} WHERE #{column_name} LIKE $1", args) rescue nil
|
||||||
if result&.ntuples > 0
|
if result&.ntuples > 0
|
||||||
found["#{table_name}.#{column_name}"] = result.map {|r| r[column_name]}
|
found["#{table_name}.#{column_name}"] = result.map { |r| r[column_name] }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
found
|
found
|
||||||
|
|
Loading…
Reference in New Issue
Block a user