Commit b8bf2834 authored by Stan Hu's avatar Stan Hu

Rubocop fixes

parent f25d64d4
......@@ -29,7 +29,7 @@ module Bitbucket
end
def representation_class(type)
class_name = Bitbucket::Representation.const_get(type.to_s.camelize)
Bitbucket::Representation.const_get(type.to_s.camelize)
end
end
end
......@@ -139,7 +139,7 @@ module Gitlab
line_code: line_code_map.fetch(comment.iid),
type: 'LegacyDiffNote')
note = merge_request.notes.create!(attributes)
merge_request.notes.create!(attributes)
rescue ActiveRecord::RecordInvalid => e
Rails.log.error("Bitbucket importer ERROR: Invalid pull request comment #{e.message}")
nil
......
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