Skip to content

Commit

Permalink
Merge pull request #13 from snyk-tech-services/develop
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
lili2311 authored Jun 4, 2020
2 parents 03c6e01 + e36acce commit cca4b11
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 cca4b11

Please sign in to comment.