Style tweak

This commit is contained in:
MICHAEL JACKSON 2017-08-31 15:42:48 -07:00
parent 98cbffa590
commit 39eca7b8ce
1 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,9 @@ function fetchPackageInfo(packageName) {
const url = `${RegistryURL}/${encodedPackageName}`
return fetch(url, {
headers: { 'Accept': 'application/json' }
headers: {
'Accept': 'application/json'
}
}).then(function (res) {
return res.status === 404 ? null : res.json()
})