From 94615b0b7e066649d39577f4d9998c6eb9574d03 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Thu, 21 Aug 2014 17:24:20 -0700 Subject: [PATCH] watch: Fixing bug with null keys --- watch/plan.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/watch/plan.go b/watch/plan.go index a6dc057730..f0c4e9ff7c 100644 --- a/watch/plan.go +++ b/watch/plan.go @@ -80,8 +80,9 @@ OUTER: } // Update the index, look for change + oldIndex := p.lastIndex p.lastIndex = index - if reflect.DeepEqual(p.lastResult, result) { + if oldIndex != 0 && reflect.DeepEqual(p.lastResult, result) { continue }