A partial function was used.
Partial functions are only valid for certain inputs; for invalid inputs they will throw an exception. In most cases,
it is better to use a non-partial version of the function (e.g. List.tryFind
instead of List.find
) or use pattern matching,
so that you need to explicitly handle those cases which would cause an exception in the partial version.
Use non-partial function or pattern matching.
{
"noPartialFunctions": {
"enabled": false,
"config": {
"allowedPartials": [],
"additionalPartials": []
}
}
}
"List.tryFind"
)