summaryrefslogtreecommitdiff
path: root/lib/gitlab_lfs_authentication.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab_lfs_authentication.rb')
-rw-r--r--lib/gitlab_lfs_authentication.rb10
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