This repository was archived by the owner on Jul 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -419,18 +419,12 @@ function makeJsonCheckerFromCore(requiredForm: any, ignoredKeys: string[]) {
419
419
const newDiff = diffFromReq ( contents ) ;
420
420
if ( typeof newDiff === "string" ) return newDiff ;
421
421
if ( newDiff . length === 0 ) return undefined ;
422
- if ( ! oldText ) return `not the required form
423
- \`\`\`JSON
424
- ${ JSON . stringify ( newDiff ) }
425
- \`\`\`` ;
422
+ if ( ! oldText ) return `not the required form \`${ JSON . stringify ( newDiff ) } \`` ;
426
423
const oldDiff = diffFromReq ( oldText ) ;
427
424
if ( typeof oldDiff === "string" ) return oldDiff ;
428
425
const notRemove = jsonDiff . compare ( oldDiff , newDiff ) . filter ( ( { op } ) => op !== "remove" ) ;
429
426
if ( notRemove . length === 0 ) return undefined ;
430
- return `not the required form and not moving towards it
431
- \`\`\`JSON
432
- ${ JSON . stringify ( notRemove . map ( ( { path } ) => newDiff [ Number ( path . slice ( 1 ) ) ] ) ) }
433
- \`\`\`` ;
427
+ return `not the required form and not moving towards it \`${ JSON . stringify ( notRemove . map ( ( { path } ) => newDiff [ Number ( path . slice ( 1 ) ) ] ) ) } \`` ;
434
428
} ;
435
429
}
436
430
You can’t perform that action at this time.
0 commit comments