apollo-link-webworker icon indicating copy to clipboard operation
apollo-link-webworker copied to clipboard

Do not parse if data is already object

Open kanasite opened this issue 4 years ago • 2 comments

@PCreations I encountered this error Uncaught SyntaxError: Unexpected token o in JSON at position 1 for certain situation, it turns out that data is already an object hence parsing twice causes the error

kanasite avatar Mar 25 '20 10:03 kanasite

Congratulations :beers:. DeepCode analyzed your code in 0.204 seconds and we found no issues. Enjoy a moment of no bugs :sunny:.

:speech_balloon: This comment has been generated by the DeepCode bot, installed by the owner of the repository. The DeepCode bot protects your repository by detecting and commenting on security vulnerabilities or other critical issues.


:relaxed: If you want to provide feedback on our bot, here is how to contact us.

ghost avatar Mar 25 '20 10:03 ghost

@PCreations I'm not very familiar with jest, looking at the existing test case, would you recommend or help with that?

kanasite avatar Mar 26 '20 04:03 kanasite