From 60c2829af4264374d842b09a175d263a28a90a21 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 4 Mar 2013 21:47:21 -0800 Subject: [PATCH] Move ahead/behind defaults to Git class --- src/app/git.coffee | 2 +- src/app/repository-status-handler.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/git.coffee b/src/app/git.coffee index 0d47cefb5..761084c57 100644 --- a/src/app/git.coffee +++ b/src/app/git.coffee @@ -141,7 +141,7 @@ class Git directoryStatus getAheadBehindCounts: -> - @getRepo().getAheadBehindCounts() + @getRepo().getAheadBehindCounts() ? ahead: 0, behind: 0 getLineDiffs: (path, text) -> @getRepo().getLineDiffs(@relativize(path), text) ? [] diff --git a/src/app/repository-status-handler.coffee b/src/app/repository-status-handler.coffee index b01cdf437..5503396ce 100644 --- a/src/app/repository-status-handler.coffee +++ b/src/app/repository-status-handler.coffee @@ -9,7 +9,7 @@ module.exports = statuses = {} for path, status of repo.getRepo().getStatuses() statuses[fs.join(workingDirectoryPath, path)] = status - upstream = repo.getAheadBehindCounts() ? {ahead: 0, behind: 0} + upstream = repo.getAheadBehindCounts() repo.destroy() else upstream = {}