Skip to content

Commit 9f79e47

Browse files
committed
Fix diff
1 parent 5b2dbc7 commit 9f79e47

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/run-prettier.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,7 @@ export async function runPrettier(
121121
if (
122122
lines[lineIndex].startsWith(`diff --git ${original.version.kind}|`) &&
123123
lines[lineIndex + 1].startsWith("index ") &&
124-
lines[lineIndex + 2].startsWith(
125-
`--- ${original.version.kind}|http://github.com/`,
126-
) &&
124+
lines[lineIndex + 2].startsWith(`--- ${original.version.kind}|`) &&
127125
lines[lineIndex + 3].startsWith(`+++ ${alternative.version.kind}|`)
128126
) {
129127
// Remove the useless head

0 commit comments

Comments
 (0)