lib/storage: typo fix

This commit is contained in:
Aliaksandr Valialkin 2020-02-16 15:53:30 +02:00
parent 32e153e834
commit ce15cecae4

View File

@ -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 {