Commit 156e211
committed
fix: simplify getXeroTenants to use optional chaining
Replace verbose nullish guards with optional chaining as the behavior
is identical — all intermediate properties are objects, so falsy checks
and optional chaining handle the same undefined/null cases.1 parent 7ea9865 commit 156e211
1 file changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1299 | 1299 | | |
1300 | 1300 | | |
1301 | 1301 | | |
1302 | | - | |
1303 | | - | |
1304 | | - | |
1305 | | - | |
| 1302 | + | |
1306 | 1303 | | |
1307 | 1304 | | |
1308 | 1305 | | |
| |||
0 commit comments