From ed9b29c856801db32c6759170fbf32c30d248c38 Mon Sep 17 00:00:00 2001 From: mossid Date: Tue, 9 Oct 2018 05:18:43 +0900 Subject: [PATCH] fix typo --- store/prefixstore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/prefixstore.go b/store/prefixstore.go index 04d268057d..981d821311 100644 --- a/store/prefixstore.go +++ b/store/prefixstore.go @@ -168,7 +168,7 @@ func (iter prefixIterator) Key() (key []byte) { // Implements Iterator func (iter prefixIterator) Value() []byte { - if !iter.valid() { + if !iter.valid { panic("prefixIterator invalid, cannot call Value()") } return iter.iter.Value()