Commit b8bf2834 authored by Stan Hu's avatar Stan Hu
Browse files

Rubocop fixes

parent ce4e30dc8ed8
......@@ -29,7 +29,7 @@ def parse_values(raw, representation_class)
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 @@ def import_inline_comments(inline_comments, pull_request, merge_request)
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