diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-02-22 18:57:19 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-02-22 18:57:19 +0200 |
commit | f83801a9fe092334d5b325bbe4b736aa6b88007e (patch) | |
tree | 9303896a1835f3841e176943d63088bb7df29489 /lib/gitlab_lfs_authentication.rb | |
parent | 8f9046aad854e4c861c3a016cc3dd69e137a5c27 (diff) | |
download | gitlab-shell-dz-update-deps.tar.gz |
Update files to pass modern rubocop checks. Disable some of themdz-update-deps
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/gitlab_lfs_authentication.rb')
-rw-r--r-- | lib/gitlab_lfs_authentication.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/gitlab_lfs_authentication.rb b/lib/gitlab_lfs_authentication.rb index 96d06d8..ccd6d69 100644 --- a/lib/gitlab_lfs_authentication.rb +++ b/lib/gitlab_lfs_authentication.rb @@ -11,12 +11,10 @@ class GitlabLfsAuthentication end def self.build_from_json(json) - begin - values = JSON.parse(json) - self.new(values['username'], values['lfs_token'], values['repository_http_path']) - rescue - nil - end + values = JSON.parse(json) + new(values['username'], values['lfs_token'], values['repository_http_path']) + rescue + nil end def authentication_payload |