@@ -63,7 +63,6 @@ func writeSchema(schema *schema, output io.Writer) error {
6363func writeDatum (time int64 , prev , curr []float32 , output io.Writer ) error {
6464 numPts := len (curr )
6565 if len (prev ) != 0 && numPts != len (prev ) {
66- //nolint:stylecheck
6766 return fmt .Errorf ("Bad input sizes. Prev: %v Curr: %v" , len (prev ), len (curr ))
6867 }
6968
@@ -234,7 +233,7 @@ func flattenMap(mValue reflect.Value) ([]string, []float32, error) {
234233 }
235234 numbers = append (numbers , subNumbers ... )
236235 case isNumeric (value .Kind ()):
237- //nolint:stylecheck
236+
238237 return nil , nil , fmt .Errorf ("A numeric type was forgotten to be included. Kind: %v" , value .Kind ())
239238 default :
240239 // Getting the keys for a structure will ignore these types. Such as the antagonistic
@@ -298,7 +297,7 @@ func flattenStruct(value reflect.Value) ([]string, []float32, error) {
298297
299298 numbers = append (numbers , subNumbers ... )
300299 case isNumeric (rField .Kind ()):
301- //nolint:stylecheck
300+
302301 return nil , nil , fmt .Errorf ("A numeric type was forgotten to be included. Kind: %v" , rField .Kind ())
303302 default :
304303 // Getting the keys for a structure will ignore these types. Such as the antagonistic
@@ -599,7 +598,6 @@ func readDiffBits(reader *bufio.Reader, schema *schema) ([]int, error) {
599598// is the post-hydration list and consequently matches the `schema.fieldOrder` size.
600599func readData (reader * bufio.Reader , schema * schema , diffedFields []int , prevValues []float32 ) ([]float32 , error ) {
601600 if prevValues != nil && len (prevValues ) != len (schema .fieldOrder ) {
602- //nolint
603601 return nil , fmt .Errorf ("Parser error. Mismatched `prevValues` and schema size. PrevValues: %d Schema: %d" ,
604602 len (prevValues ), len (schema .fieldOrder ))
605603 }
0 commit comments