Skip to content

Commit 1731e66

Browse files
committed
Remove TODOs from code
List them in GitHub issues instead
1 parent f6ce120 commit 1731e66

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

packages/gitgraph-core/src/gitgraph.ts

-1
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,6 @@ export class GitgraphCore {
388388

389389
while (queue.length > 0) {
390390
const currentHash = queue.pop() as Commit["hash"];
391-
// TODO: convert commits to a Map<Commit["hash"], Commit>
392391
const current = commits.find(
393392
({ hash }) => hash === currentHash,
394393
) as Commit;

packages/gitgraph-react/src/Gitgraph.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ export class Gitgraph extends React.Component<GitgraphProps, GitgraphState> {
133133
{/* Arrow */}
134134
{this.gitgraph.template.arrow.size &&
135135
commit.parents.map((parentHash) => {
136-
// TODO: refactor in commit
137136
const parent = this.state.commits.find(
138137
({ hash }) => hash === parentHash,
139138
) as Commit;
@@ -171,7 +170,6 @@ export class Gitgraph extends React.Component<GitgraphProps, GitgraphState> {
171170

172171
if (commit.style.message.displayBranch) {
173172
message += `[${commit.branches![commit.branches!.length - 1]}`;
174-
// TODO: create a displayTag. Handle color / font?
175173
if (commit.tags!.length) {
176174
message += `, ${commit.tags!.join(", ")}`;
177175
}

0 commit comments

Comments
 (0)