Commit dd70b371 authored by mo khan's avatar mo khan Committed by Ash McKenzie

Use Hash#key instead of Hash#invert

parent eff75fc6
......@@ -862,8 +862,8 @@ module EE
class ManagedLicense < Grape::Entity
expose :id, :name
expose :classification, as: :approval_status do |policy|
SoftwareLicensePolicy::APPROVAL_STATUS.invert
.fetch(policy.classification, policy.classification)
SoftwareLicensePolicy::APPROVAL_STATUS.key(policy.classification) ||
policy.classification
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