Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling Error in Scorer #263

Open
nathannaveen opened this issue Nov 28, 2022 · 1 comment
Open

Handling Error in Scorer #263

nathannaveen opened this issue Nov 28, 2022 · 1 comment

Comments

@nathannaveen
Copy link
Contributor

I am in the process of writing tests for ScoreRaw() and noticed a TODO: improve this behavior.

// TODO: improve this behavior
v, err := strconv.ParseFloat(rawV, 64)
if err != nil {
// Failed to parse raw into a float, ignore the field
continue
}

In my opinion, it shouldn't ignore errors but should return them.

@nathannaveen
Copy link
Contributor Author

@calebbrown thoughts on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant