-
Notifications
You must be signed in to change notification settings - Fork 30
Non-standard indentation and undefined catch scope #119
Comments
@robertosousa1 Thanks for the bug report @robertosousa1 -- when you say you're seeing the error
Is this an error you see while running the agent? Or is this a linting error related to the other issues you've opened? |
@astorm |
@K-Kumar-01 We're still waiting on @robertosousa1 -- when he said
it wasn't clear whether this was a linting error or an "execution of code during the agent error". @k-g-elastic Can you reproduce the error @robertosousa1 mentioned? If so, can you share those reproduction steps? |
Hi @astorm, It is a linting error. If you understand that there is a need for adjustment, I can do the PR. |
Hi All, From what linting tool do you see this linting error? This repo is currently using standard for linting and that passes:
Note that we don't want to change this to throw an error in the |
In elastic/apm-agent-nodejs#3507 this repo code was moved to https://github.com/elastic/apm-agent-nodejs/tree/main/lib/apm-client/http-apm-client/. I'm closing this issue here. FWIW this code passes the eslint linting we are using. Please feel free to open a PR on the apm-agent-nodejs.git repo if you need some change to satisfy another linter you are using. |
In the file "lib/ndjson.js" the tryJSONStringify function is declared below your call, this causes an "Expected to return a value at the end of function 'tryJSONStringify' indentation conflict" and this function still has nothing defined in its catch scope.
I suggest implementing the following code:
The text was updated successfully, but these errors were encountered: