Commit 022a0c2f authored by Stan Hu's avatar Stan Hu

Fix Rubocop errors

parent a78e36ab
......@@ -11,7 +11,7 @@ class Import::BitbucketServerController < Import::BaseController
# Repository names are limited to 128 characters. They must start with a
# letter or number and may contain spaces, hyphens, underscores, and periods.
# (https://community.atlassian.com/t5/Answers-Developer-Questions/stash-repository-names/qaq-p/499054)
VALID_BITBUCKET_CHARS = %r(\A[a-zA-z0-9\-_\.\s]*$)
VALID_BITBUCKET_CHARS = /\A[a-zA-z0-9\-_\.\s]*$/
SERVER_ERRORS = [SocketError,
OpenSSL::SSL::SSLError,
......
......@@ -18,7 +18,7 @@ module BitbucketServer
end
def browse_url
link = raw.dig('project', 'links', 'self').first.fetch('href')
raw.dig('project', 'links', 'self').first.fetch('href')
end
def clone_url
......
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