dataconv/share.go
Method SharedDict.LoadJSON
has 5 return statements (exceeds 4 allowed). Open
Open
func (s *SharedDict) LoadJSON(jsonStr string) error {
// check the dict itself
if s == nil {
return fmt.Errorf("nil shared dict")
}
Function sharedDictFromJSON
has 5 return statements (exceeds 4 allowed). Open
Open
func sharedDictFromJSON(thread *starlark.Thread, b *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error) {
// check the arguments
var s tps.StringOrBytes
if err := starlark.UnpackArgs(b.Name(), args, kwargs, "x", &s); err != nil {
return nil, err