Update dependencies

Signed-off-by: Ciprian Hacman <chacman@microsoft.com>
This commit is contained in:
Ciprian Hacman
2025-04-14 16:52:20 +03:00
committed by Ciprian Hacman
parent be0d387ec1
commit 0f1ee66855
1423 changed files with 102172 additions and 26072 deletions
+2 -1
View File
@@ -15,6 +15,7 @@ package model
import (
"encoding/json"
"errors"
"fmt"
"math"
"strconv"
@@ -39,7 +40,7 @@ func (v SampleValue) MarshalJSON() ([]byte, error) {
// UnmarshalJSON implements json.Unmarshaler.
func (v *SampleValue) UnmarshalJSON(b []byte) error {
if len(b) < 2 || b[0] != '"' || b[len(b)-1] != '"' {
return fmt.Errorf("sample value must be a quoted string")
return errors.New("sample value must be a quoted string")
}
f, err := strconv.ParseFloat(string(b[1:len(b)-1]), 64)
if err != nil {