Skip to content

Commit

Permalink
fixed hash error loc & line properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Fulbright authored and Austin Fulbright committed Aug 5, 2024
1 parent 2a38d46 commit 38e048b
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions packages/mermaid/src/diagrams/git/gitGraphAst.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ export const merge = (
error.hash = {
text: `merge ${otherBranch}`,
token: `merge ${otherBranch}`,
line: '1',
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
expected: ['branch abc'],
};
throw error;
Expand All @@ -158,8 +156,6 @@ export const merge = (
error.hash = {
text: `merge ${otherBranch}`,
token: `merge ${otherBranch}`,
line: '1',
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
expected: ['commit'],
};
throw error;
Expand All @@ -171,8 +167,6 @@ export const merge = (
error.hash = {
text: `merge ${otherBranch}`,
token: `merge ${otherBranch}`,
line: '1',
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
expected: [`branch ${otherBranch}`],
};
throw error;
Expand All @@ -184,8 +178,6 @@ export const merge = (
error.hash = {
text: `merge ${otherBranch}`,
token: `merge ${otherBranch}`,
line: '1',
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
expected: ['"commit"'],
};
throw error;
Expand All @@ -195,8 +187,6 @@ export const merge = (
error.hash = {
text: `merge ${otherBranch}`,
token: `merge ${otherBranch}`,
line: '1',
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
expected: ['branch abc'],
};
throw error;
Expand All @@ -210,8 +200,6 @@ export const merge = (
error.hash = {
text: `merge ${otherBranch} ${customId} ${overrideType} ${customTags?.join(' ')}`,
token: `merge ${otherBranch} ${customId} ${overrideType} ${customTags?.join(' ')}`,
line: '1',
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
expected: [
`merge ${otherBranch} ${customId}_UNIQUE ${overrideType} ${customTags?.join(' ')}`,
],
Expand Down Expand Up @@ -262,8 +250,6 @@ export const cherryPick = function (
error.hash = {
text: `cherryPick ${sourceId} ${targetId}`,
token: `cherryPick ${sourceId} ${targetId}`,
line: '1',
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
expected: ['cherry-pick abc'],
};
throw error;
Expand Down Expand Up @@ -324,7 +310,6 @@ export const cherryPick = function (
error.hash = {
text: `cherryPick ${sourceId} ${targetId}`,
token: `cherryPick ${sourceId} ${targetId}`,
line: '1',
expected: ['cherry-pick abc'],
};
throw error;
Expand Down Expand Up @@ -361,8 +346,6 @@ export const checkout = function (branch: string) {
error.hash = {
text: `checkout ${branch}`,
token: `checkout ${branch}`,
line: '1',
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
expected: [`branch ${branch}`],
};
throw error;
Expand Down

0 comments on commit 38e048b

Please sign in to comment.