mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-06-01 02:10:22 +08:00
Removed explicit return statements in table_data.rb.
This commit is contained in:
@@ -27,8 +27,7 @@ module ProMotion
|
||||
end
|
||||
|
||||
table_section = self.section(params[:section])
|
||||
return table_section[:cells].at(params[:index].to_i)
|
||||
nil
|
||||
table_section[:cells].at(params[:index].to_i)
|
||||
end
|
||||
|
||||
def delete_cell(params={})
|
||||
@@ -38,8 +37,7 @@ module ProMotion
|
||||
end
|
||||
|
||||
table_section = self.section(params[:section])
|
||||
return table_section[:cells].delete_at(params[:index].to_i)
|
||||
nil
|
||||
table_section[:cells].delete_at(params[:index].to_i)
|
||||
end
|
||||
|
||||
def search(search_string)
|
||||
|
||||
Reference in New Issue
Block a user