Skip to content

Commit

Permalink
[core] GraphQL: Remove special handling of 404 in graphql list command
Browse files Browse the repository at this point in the history
  • Loading branch information
saasen committed Feb 27, 2020
1 parent 3670bac commit 7b026e0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/@sanity/core/src/actions/graphql/listApisAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ module.exports = async function listApisAction(args, context) {
method: 'GET'
})
} catch (err) {
if (err.statusCode === 404) {
endpoints = []
} else {
throw err
}
throw err
}

if (endpoints && endpoints.length > 0) {
Expand Down

0 comments on commit 7b026e0

Please sign in to comment.