Matthias Kolley

Results 14 comments of Matthias Kolley

I was able to test it with: Version: Insomnia 2023.1.0 Build date: 9.3.2023 OS: Windows_NT x64 10.0.19045 Electron: 22.0.0 Node: 16.17.1 V8: 10.8.168.20-electron.0 Architecture: x64 I switched between Design &...

I'm using still TS 3.8.3 and have a the same issue in the following case. ``` const result = someString.split("?").shift()!; ``` I also checked with typescript 4.1.2. Same issue.

I checked it with the following code. ``` function sonarLintDemo(value: string): string { if (!value.includes("?")) { return ""; } const firstArrayElement = value.split("?").shift()!; //Sonarlint is complaining here. return firstArrayElement; }...

Nope. It just changes location of error message. from `return firstArrayElement;` to `const firstArrayELement: string = value .....`