Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-08-01 20:44:45 +0300
committerStan Hu <stanhu@gmail.com>2018-08-01 20:45:04 +0300
commitaa5821e571620e09229721a1a235d93a554db6a3 (patch)
treee076faa082797f700e04f1920478f1e0d4f723d6 /lib
parent636bcebcba5d9215e550f4ca7ba7c75404e06ba9 (diff)
Assorted Bitbucket Server importer code cleanup based on review
Diffstat (limited to 'lib')
-rw-r--r--lib/bitbucket_server/connection.rb8
-rw-r--r--lib/bitbucket_server/page.rb2
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/bitbucket_server/connection.rb b/lib/bitbucket_server/connection.rb
index a3150cc38d5..45a437844bd 100644
--- a/lib/bitbucket_server/connection.rb
+++ b/lib/bitbucket_server/connection.rb
@@ -12,10 +12,10 @@ module BitbucketServer
ConnectionError = Class.new(StandardError)
def initialize(options = {})
- @api_version = options.fetch(:api_version, DEFAULT_API_VERSION)
- @base_uri = options[:base_uri]
- @username = options[:user]
- @token = options[:password]
+ @api_version = options.fetch(:api_version, DEFAULT_API_VERSION)
+ @base_uri = options[:base_uri]
+ @username = options[:user]
+ @token = options[:password]
end
def get(path, extra_query = {})
diff --git a/lib/bitbucket_server/page.rb b/lib/bitbucket_server/page.rb
index a91ccad5738..5d9a3168876 100644
--- a/lib/bitbucket_server/page.rb
+++ b/lib/bitbucket_server/page.rb
@@ -20,7 +20,7 @@ module BitbucketServer
private
def parse_attrs(raw)
- raw.slice(*%w(size nextPageStart isLastPage)).symbolize_keys
+ raw.slice('size', 'nextPageStart', 'isLastPage').symbolize_keys
end
def parse_values(raw, bitbucket_rep_class)