Skip to content

Commit

Permalink
Extract logic into variable to aide in readability
Browse files Browse the repository at this point in the history
  • Loading branch information
iAmWillShepherd committed Oct 15, 2018
1 parent 38be4b4 commit ee4e718
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/lib/stores/app-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1483,9 +1483,10 @@ export class AppStore extends TypedBaseStore<IAppState> {

const repository = selection.repository
const repoState = this.repositoryStateCache.get(repository)
// check if conflicts exist by inspecting conflictState: null means no conflicts exist
const conflictsExist = repoState.conflictState !== null

// check if we're in a conflicted state
if (repoState.conflictState === null) {
if (conflictsExist) {
return
}

Expand Down

0 comments on commit ee4e718

Please sign in to comment.