summaryrefslogtreecommitdiff
path: root/applyPatch.go
diff options
context:
space:
mode:
Diffstat (limited to 'applyPatch.go')
-rw-r--r--applyPatch.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/applyPatch.go b/applyPatch.go
index 9d70ff4..9abafef 100644
--- a/applyPatch.go
+++ b/applyPatch.go
@@ -51,9 +51,8 @@ func IsAnythingDirty() bool {
me.found = new(gitpb.Repos)
findAll() // select all the repos
doCheckDirtyAndConfigSave()
- me.found = new(gitpb.Repos)
- findDirty()
- if len(me.found.Repos) == 0 {
+ found := findDirty()
+ if found.Len() == 0 {
return false
} else {
return true