From 4d15302187be563d40938c4d131ed6957a23b61e Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Fri, 4 Jan 2019 01:10:29 -0500 Subject: [PATCH] Reorders methods --- src/views/nodes/repositoryNode.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/views/nodes/repositoryNode.ts b/src/views/nodes/repositoryNode.ts index 3c88a60..34cbaf6 100644 --- a/src/views/nodes/repositoryNode.ts +++ b/src/views/nodes/repositoryNode.ts @@ -187,18 +187,6 @@ export class RepositoryNode extends SubscribeableViewNode { } @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); } @@ -212,6 +200,18 @@ export class RepositoryNode extends SubscribeableViewNode { 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)];