Fix cop offenses for Style/HashTransformation in lib directory
requested to merge karthik.sivadas/gitlab:pl-rubocop-style-hashtransformation-lib-directory into master
What does this MR do?
Fix cop offenses for Style/HashTransformation in the lib directory.
Contributes to #322739 (closed)