Commit cb80dc6
refactor: avoid non-null assertions in sendAndSetConnectorStatus
Replace non-null assertions (!) with null checks and early return to comply
with updated coding guidelines. Add error logging when connector status is null.
Changes:
- Check connectorStatus for null before accessing properties
- Store connectorStatus reference to avoid repeated calls
- Add error log and early return for non-existing connector
- Remove all eslint-disable comments for no-non-null-assertion
Co-authored-by: jerome-benoit <6537332+jerome-benoit@users.noreply.github.com>1 parent 00625e5 commit cb80dc6
1 file changed
Lines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
180 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
181 | 187 | | |
182 | | - | |
183 | | - | |
| 188 | + | |
184 | 189 | | |
185 | 190 | | |
186 | | - | |
| 191 | + | |
187 | 192 | | |
188 | 193 | | |
189 | 194 | | |
| |||
198 | 203 | | |
199 | 204 | | |
200 | 205 | | |
201 | | - | |
202 | | - | |
| 206 | + | |
203 | 207 | | |
204 | 208 | | |
205 | | - | |
| 209 | + | |
206 | 210 | | |
207 | 211 | | |
208 | 212 | | |
| |||
0 commit comments