Skip to content

Commit

Permalink
Merge pull request #702 from SSWConsulting/error-handling-2
Browse files Browse the repository at this point in the history
Add null check to broken links filter
  • Loading branch information
tombui99 authored Oct 18, 2023
2 parents b5c6fd3 + 70bea95 commit 1c54675
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 1c54675

Please sign in to comment.