Skip to content

Commit

Permalink
this operation is already wrapped in a performFailableOperation
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftkey committed Jul 30, 2018
1 parent 89a51ce commit 6162177
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/src/lib/stores/app-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1933,11 +1933,8 @@ export class AppStore extends TypedBaseStore<IAppState> {
})
}

const status = await gitStore.performFailableOperation(() => {
return gitStore.loadStatus()
})

if (status != null) {
const status = await gitStore.loadStatus()
if (status !== null) {
lookup.set(repo.id, {
aheadBehind: gitStore.aheadBehind,
changedFilesCount: status.workingDirectory.files.length,
Expand Down

0 comments on commit 6162177

Please sign in to comment.