Skip to content

Commit

Permalink
Use different line number
Browse files Browse the repository at this point in the history
  • Loading branch information
rehlma committed Apr 11, 2024
1 parent f63871c commit 46a5f06
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29082,7 +29082,7 @@ function findTodos(prDiff) {
if (todo === undefined)
return;
return {
line: startLineNumer + index,
line: index + 1,
content: todo,
added: line.startsWith('+')
};
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function findTodos(prDiff: PrDiff): Todo[] {
const todo = getTodoIfFound(line)
if (todo === undefined) return
return {
line: startLineNumer + index,
line: index + 1,
content: todo,
added: line.startsWith('+')
}
Expand Down

0 comments on commit 46a5f06

Please sign in to comment.