Commit c090533c authored by James Lopez's avatar James Lopez

Merge branch 'remove-todo-explose-nil' into 'master'

Remove TODO about using expose_nil

See merge request gitlab-org/gitlab!49239
parents bad1d21e e6355c10
......@@ -12,9 +12,8 @@ module API
project.import_state&.relation_hard_failures(limit: 100) || []
end
# TODO: Use `expose_nil` once we upgrade the grape-entity gem
expose :import_error, if: lambda { |project, _ops| project.import_state&.last_error } do |project|
project.import_state.last_error
expose :import_error do |project, _options|
project.import_state&.last_error
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment