Skip to content

Commit

Permalink
Reorders methods
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Jan 4, 2019
1 parent 17b13ef commit 4d15302
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/views/nodes/repositoryNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,18 +186,6 @@ export class RepositoryNode extends SubscribeableViewNode<RepositoriesView> {
return this.repo.pull(options);
}

@log()
async star() {
await this.repo.star();
void this.parent!.triggerChange();
}

@log()
async unstar() {
await this.repo.unstar();
void this.parent!.triggerChange();
}

@log()
push(options: { force?: boolean; progress?: boolean } = {}) {
return this.repo.push(options);
Expand All @@ -212,6 +200,18 @@ export class RepositoryNode extends SubscribeableViewNode<RepositoriesView> {
await this.ensureSubscription();
}

@log()
async star() {
await this.repo.star();
void this.parent!.triggerChange();
}

@log()
async unstar() {
await this.repo.unstar();
void this.parent!.triggerChange();
}

@debug()
protected async subscribe() {
const disposables = [this.repo.onDidChange(this.onRepoChanged, this)];
Expand Down

0 comments on commit 4d15302

Please sign in to comment.