refactor(dev-infra): several code style and typo fixes (#39135)
This commit addresses comments from [my review][1] on PR #38656 (which was merged without comments addressed). The changes are mostly related to code style and typos. [1]: https://github.com/angular/angular/pull/38656#pullrequestreview-482129333 PR Close #39135
This commit is contained in:
@ -6,6 +6,6 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
export * from './semver-matchers';
|
||||
export * from './virtual-git-client';
|
||||
export * from './virtual-git-matchers';
|
||||
export * from './semver-matchers';
|
||||
|
@ -123,7 +123,7 @@ export class VirtualGitClient extends GitClient {
|
||||
this.branches[ref.destination] = {
|
||||
branch: ref.destination,
|
||||
ref: this.fetchHeadRef,
|
||||
newCommits: []
|
||||
newCommits: [],
|
||||
};
|
||||
}
|
||||
}
|
||||
@ -141,7 +141,7 @@ export class VirtualGitClient extends GitClient {
|
||||
}
|
||||
this.head = {ref: this.fetchHeadRef, newCommits: []};
|
||||
} else if (this.branches[target]) {
|
||||
this.head = {...this._cloneHead(this.branches[target], detached)};
|
||||
this.head = this._cloneHead(this.branches[target], detached);
|
||||
} else if (createBranch) {
|
||||
this.head = this.branches[target] = {branch: target, ...this._cloneHead(this.head, detached)};
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user