Skip to content

Commit 9a70b79

Browse files
committed
1 parent ee70e5b commit 9a70b79

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/github/auth/keys_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def github_response
4040
raise GithubUserDoesNotExistError if response.code == 404
4141
response.parsed_response
4242
rescue SocketError, Errno::ECONNREFUSED => e
43-
raise GithubUnavailableError.new e
43+
raise GithubUnavailableError, e
4444
end
4545

4646
def http_client

lib/github/auth/keys_file.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ def keys_file_content
4646
def with_keys_file(mode, block)
4747
File.open(path, mode) { |keys_file| block.call keys_file }
4848
rescue Errno::EACCES => e
49-
raise PermissionDeniedError.new e
49+
raise PermissionDeniedError, e
5050
rescue Errno::ENOENT => e
51-
raise FileDoesNotExistError.new e
51+
raise FileDoesNotExistError, e
5252
end
5353

5454
def keys_file_content_without(keys)

0 commit comments

Comments
 (0)