Skip to content

Commit

Permalink
remove code duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
Connum committed Apr 15, 2024
1 parent f53924b commit a1bbc3f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ function optimizeCommands(commands) {
if (i + 1 < commands.length) {
subpaths.push([]);
}
} else if (cmd.type === 'L' && previousCommand && previousCommand.x === cmd.x && previousCommand.y === cmd.y) {
subpath.pop();
}
}
commands = [].concat.apply([], subpaths); // flatten again
Expand Down

0 comments on commit a1bbc3f

Please sign in to comment.