diff options
author | Stan Hu <stanhu@gmail.com> | 2016-11-18 07:16:22 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-11-22 03:47:29 +0300 |
commit | b8bf28348fb903c62e084353896873438f4f0845 (patch) | |
tree | 0cb8b23be351db10023d2143ae7ad5d7983ce094 | |
parent | f25d64d41ae16b96c1381068112717be5b4a1552 (diff) |
Rubocop fixes
-rw-r--r-- | lib/bitbucket/page.rb | 2 | ||||
-rw-r--r-- | lib/gitlab/bitbucket_import/importer.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/bitbucket/page.rb b/lib/bitbucket/page.rb index 0e8ce11aa1d..bc51ce7dce2 100644 --- a/lib/bitbucket/page.rb +++ b/lib/bitbucket/page.rb @@ -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 diff --git a/lib/gitlab/bitbucket_import/importer.rb b/lib/gitlab/bitbucket_import/importer.rb index 94e8062e447..1f7a691e6dd 100644 --- a/lib/gitlab/bitbucket_import/importer.rb +++ b/lib/gitlab/bitbucket_import/importer.rb @@ -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 |