- Versions used: SonarCloud
- Typescript: 3.7.2
We have a paid subscription with SonarCloud and since we adopted typescript 3.7.2, we get false positives with error being: Non-empty statements should change control flow or have at least one side-effect
The code that’s reported as buggy is this
x?.somefunction("abc") where somefunction property has the following type
(aaa: string) => void
So if the function is defined, it should be called, which is exactly what the ?. does.
Is this a false positive?