Fix indent.

This commit is contained in:
BoHung Chiu 2022-12-15 17:32:55 +08:00
parent 21ed1535aa
commit 7f474cb68e
1 changed files with 61 additions and 65 deletions

View File

@ -44,7 +44,6 @@ class Certificate
fields_to_show = fields_to_show - fields_to_remove fields_to_show = fields_to_show - fields_to_remove
plugin_datas = datas.sort_for_frontend.collect.with_index do |p,index| plugin_datas = datas.sort_for_frontend.collect.with_index do |p,index|
pd_data = [] pd_data = []
fields_to_show.collect do |t| fields_to_show.collect do |t|
if t == "title" if t == "title"
@ -56,14 +55,11 @@ class Certificate
pd_data << { "data_title" => p.send(t) } pd_data << { "data_title" => p.send(t) }
end end
end end
{ {
"pd_datas" => pd_data "pd_datas" => pd_data
} }
end end
return [pd_title,plugin_datas] return [pd_title,plugin_datas]
end end
def get_plugin_data(fields_to_show) def get_plugin_data(fields_to_show)