Skip to content

Commit

Permalink
Make the "branch is Token" EventId always different from the "branch …
Browse files Browse the repository at this point in the history
…is not Token" case
  • Loading branch information
skinny85 authored Sep 22, 2020
1 parent fc3cfb9 commit 8af58ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export class CodeCommitSourceAction extends Action {
let candidate = '';
let counter = 0;
do {
candidate = this.eventIdFromPrefix(`${baseId}-Branch${counter}-`);
candidate = this.eventIdFromPrefix(`${baseId}{counter}`);
counter += 1;
} while (this.props.repository.node.tryFindChild(candidate) !== undefined);
return candidate;
Expand Down

0 comments on commit 8af58ab

Please sign in to comment.