From f44c08a530cbaa87df61889bcf14693818bd5943 Mon Sep 17 00:00:00 2001 From: Philip O Toole Date: Tue, 15 Nov 2016 10:29:52 -0800 Subject: [PATCH] Skip loading blank lines --- store/store.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/store/store.go b/store/store.go index bfc271a4..52c19508 100644 --- a/store/store.go +++ b/store/store.go @@ -470,8 +470,11 @@ func (s *Store) Load(r io.Reader, sz int) (int64, error) { cmd == "COMMIT" { continue } - if cmd == "" && err == io.EOF { - break + if cmd == "" { + if err == io.EOF { + break + } + continue } queries = append(queries, cmd)