File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ export const index = async (input: string = process.argv[2], options: IndexOptio
9595 pages = checkCustomUrls ( siteUrl , pages ) ;
9696 console . log ( `👉 Found ${ pages . length } URLs in the provided list` ) ;
9797 }
98-
98+
9999 const statusPerUrl : Record < string , { status : Status ; lastCheckedAt : string } > = existsSync ( cachePath )
100100 ? JSON . parse ( readFileSync ( cachePath , "utf8" ) )
101101 : { } ;
@@ -123,7 +123,7 @@ export const index = async (input: string = process.argv[2], options: IndexOptio
123123 const shouldRecheck = ( status : Status , lastCheckedAt : string ) => {
124124 const shouldIndexIt = indexableStatuses . includes ( status ) ;
125125 const isOld = new Date ( lastCheckedAt ) < new Date ( Date . now ( ) - CACHE_TIMEOUT ) ;
126- return shouldIndexIt && isOld ; ;
126+ return shouldIndexIt && isOld ;
127127 } ;
128128
129129 await batch (
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ export async function checkSiteUrl(accessToken: string, siteUrl: string) {
130130export function checkCustomUrls ( siteUrl : string , urls : string [ ] ) {
131131 const protocol = siteUrl . startsWith ( "http://" ) ? "http://" : "https://" ;
132132 const domain = siteUrl . replace ( "https://" , "" ) . replace ( "http://" , "" ) . replace ( "sc-domain:" , "" ) ;
133- const formattedUrls : string [ ] = urls . map ( ( url ) => {
133+ const formattedUrls : string [ ] = urls . map ( ( url ) => {
134134 url = url . trim ( ) ;
135135 if ( url . startsWith ( "/" ) ) {
136136 // the url is a relative path (e.g. /about)
@@ -143,7 +143,7 @@ export function checkCustomUrls(siteUrl: string, urls: string[]) {
143143 return `${ protocol } ${ url } ` ;
144144 } else {
145145 // the url is a relative path without the leading slash (e.g. about)
146- return `${ protocol } ${ domain } /${ url } `
146+ return `${ protocol } ${ domain } /${ url } ` ;
147147 }
148148 } ) ;
149149
You can’t perform that action at this time.
0 commit comments