Skip to content

Commit

Permalink
Update src/handlers.js
Browse files Browse the repository at this point in the history
Co-authored-by: DeeDeeG <[email protected]>
  • Loading branch information
confused-Techie and DeeDeeG authored Dec 25, 2023
1 parent 31b4bbb commit f00bf97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async function singlePackageListing(req, res, timecop) {
// we initialize as boolean to no-op in the case we don't find a proper status

const validStatusIs = (val, key) => {
if (val?.response?.[key] && typeof val.response[key] === "boolean" && val.response[key]) {
if (typeof val?.response?.[key] === "boolean" && val.response[key]) {
return true;
} else {
return false;
Expand Down

0 comments on commit f00bf97

Please sign in to comment.