Skip to content

Commit

Permalink
Merge pull request #11 from snyk-tech-services/fix/unexpected-error
Browse files Browse the repository at this point in the history
fix: fix unsafe object get
  • Loading branch information
aarlaud authored Jun 4, 2020
2 parents 7d46faf + fab38e4 commit e36acce
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 e36acce

Please sign in to comment.