Skip to content

Conversation

@Peter9192
Copy link
Contributor

@Peter9192 Peter9192 commented Jan 15, 2024

I noticed that when I made a query that warned me about "no results found", the response was still filled with data from a previous query.

This is because, in checking the result, the first condition was true and the short-circuit evaluation thus proceeded with the else branch without checking the second condition.

Instead, it should return empty when

  • no result
  • yes result, but the status code is wrong

Also updates the URL to NPN servers

Prevents loading old data when result is empty.
@Peter9192
Copy link
Contributor Author

Checks fail on unrelated server issues.

@Peter9192
Copy link
Contributor Author

Checks fail on unrelated server issues.

Looks like it could be related to usa-npn/rnpn#33

If no results or results but empty.
Why does one test suite fail while the others don't? Server issue?
@Peter9192
Copy link
Contributor Author

Not sure why there are two failing tests now, they run fine on my end.

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

Successfully merging this pull request may close these issues.

1 participant