Browse Source

Fix code logic issues

main
nooooooom 1 year ago
committed by Eric Amodio
parent
commit
840a5f8fb4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/git/parsers/diffParser.ts

+ 2
- 2
src/git/parsers/diffParser.ts View File

@ -23,8 +23,8 @@ export function parseGitFileDiff(data: string, includeContents = false): GitDiff
// Skip header // Skip header
let i = -1; let i = -1;
while (i < lines.length) {
if (lines[++i].startsWith('@@')) {
while (++i < lines.length) {
if (lines[i].startsWith('@@')) {
break; break;
} }
} }

Loading…
Cancel
Save