Fix Rubocop errors

This commit is contained in:
Stan Hu 2018-07-05 21:11:03 -07:00
parent a78e36abab
commit 022a0c2fde
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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