File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34408,7 +34408,7 @@ const previewUpdater = async () => {
3440834408 // Read file
3440934409 const content = (0, filesystem_1.readFile)(config, config.path.readme);
3441034410 const preview = (0, preview_1.setPreview)(content, config);
34411- if (content !== preview) {
34411+ if (content.trim() !== preview.trim() ) {
3441234412 // Checkout branch
3441334413 const branchExists = await repo.branchExists();
3441434414 (0, core_1.info)(`Checkout ${branchExists ? 'existing' : 'new'} branch named "${repo.branchName()}"`);
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ const previewUpdater = async () => {
4545 const content = readFile ( config , config . path . readme )
4646 const preview = setPreview ( content , config )
4747
48- if ( content !== preview ) {
48+ if ( content . trim ( ) !== preview . trim ( ) ) {
4949 // Checkout branch
5050 const branchExists = await repo . branchExists ( )
5151 info ( `Checkout ${ branchExists ? 'existing' : 'new' } branch named "${ repo . branchName ( ) } "` )
You can’t perform that action at this time.
0 commit comments