Use coalescing instead of or

This commit is contained in:
Luc Perkins 2024-06-03 11:47:38 -07:00
parent 1025a55627
commit f92f10828b
No known key found for this signature in database
GPG Key ID: 16DB1108FB591835
2 changed files with 2 additions and 2 deletions

2
dist/index.js generated vendored
View File

@ -98145,7 +98145,7 @@ var NixInstallerAction = class extends DetSysAction {
debug_probe_urls_body: resp.body,
// eslint-disable-line camelcase
// eslint-disable-next-line camelcase
debug_probe_urls_elapsed: (resp.timings.end || 0) - resp.timings.start
debug_probe_urls_elapsed: (resp.timings.end ?? 0) - resp.timings.start
});
} catch (e) {
this.recordEvent("debug-probe-urls:exception", {

View File

@ -171,7 +171,7 @@ class NixInstallerAction extends DetSysAction {
debug_probe_urls_body: resp.body, // eslint-disable-line camelcase
// eslint-disable-next-line camelcase
debug_probe_urls_elapsed:
(resp.timings.end || 0) - resp.timings.start,
(resp.timings.end ?? 0) - resp.timings.start,
});
} catch (e: unknown) {
this.recordEvent("debug-probe-urls:exception", {