Skip to content

Commit 405b57c

Browse files
Simplify README content comparison logic by removing unnecessary whitespace trimming.
1 parent d090ce8 commit 405b57c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.trim() !== preview.trim()) {
34411+
if (content !== preview) {
3441234412
// Checkout branch
3441334413
const branchExists = await repo.branchExists();
3441434414
(0, core_1.info)(`Checkout ${branchExists ? 'existing' : 'new'} branch named "${repo.branchName()}"`);

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.trim() !== preview.trim()) {
48+
if (content !== preview) {
4949
// Checkout branch
5050
const branchExists = await repo.branchExists()
5151
info(`Checkout ${ branchExists ? 'existing' : 'new' } branch named "${ repo.branchName() }"`)

0 commit comments

Comments
 (0)