Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
kpdecker committed Nov 8, 2020
1 parent 7dbf2ea commit 4428de9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/patch/apply.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ export function applyPatch(source, uniDiff, options = {}) {
toPos = hunk.oldStart + hunk.offset + diffOffset - 1;
diffOffset += hunk.newLines - hunk.oldLines;

if (toPos < 0) { // Creating a new file
toPos = 0;
}

for (let j = 0; j < hunk.lines.length; j++) {
let line = hunk.lines[j],
operation = (line.length > 0 ? line[0] : ' '),
Expand Down

0 comments on commit 4428de9

Please sign in to comment.