Skip to content

Commit

Permalink
fix: fix unsafe object get
Browse files Browse the repository at this point in the history
  • Loading branch information
lili2311 committed Jun 4, 2020
1 parent 7d46faf commit fab38e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/request/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const makeSnykRequest = async (request: snykRequest) => {
}
return res
} catch (err) {
switch(err.response.status){
switch(err.response?.status){
case 401:
throw new Error.ApiAuthenticationError(err)
case 404:
Expand Down

0 comments on commit fab38e4

Please sign in to comment.