From ce15cecae4f8ad7001cf26bef24f5f49ad956215 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Sun, 16 Feb 2020 15:53:30 +0200 Subject: [PATCH] lib/storage: typo fix --- lib/storage/storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/storage/storage.go b/lib/storage/storage.go index 5956f35b8..ab217dbec 100644 --- a/lib/storage/storage.go +++ b/lib/storage/storage.go @@ -970,7 +970,7 @@ func (s *Storage) add(rows []rawRow, mrs []MetricRow, precisionBits uint8) ([]ra if err := s.tb.AddRows(rows); err != nil { lastError = fmt.Errorf("cannot add rows to table: %s", err) } - if err := s.updatePerDateData(rows, lastError); err != nil lastError == nil { + if err := s.updatePerDateData(rows, lastError); err != nil && lastError == nil { lastError = fmt.Errorf("cannot update per-date data: %s", err) } if lastError != nil {