From a2b81b71b980d30945be2a92b3fec46bd9c5e69f 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 bb9cb562c..ee7cf33bf 100644 --- a/lib/storage/storage.go +++ b/lib/storage/storage.go @@ -1038,7 +1038,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 {