Skip to content

Commit

Permalink
Add null check
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharykeeping committed Oct 18, 2023
1 parent b5c6fd3 commit 70bea95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ exports.processBrokenLinks = (
const __getBadResults = (allUrls) =>
allUrls
// Allow successful 2xx status code range (200-299)
.filter((url) => url["StatusCode"].startsWith('2') && url["StatusCode"].length === 3)
.filter((url) => url["StatusCode"]?.startsWith('2') && url["StatusCode"]?.length === 3)
.map((x) => ({
src: x.Source || "",
dst: x.Destination || "",
Expand Down

0 comments on commit 70bea95

Please sign in to comment.