mirror of
https://github.com/DeterminateSystems/nix-installer-action.git
synced 2024-12-23 05:22:21 +01:00
Use coalescing instead of or
This commit is contained in:
parent
1025a55627
commit
f92f10828b
2 changed files with 2 additions and 2 deletions
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
|
@ -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", {
|
||||
|
|
|
@ -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", {
|
||||
|
|
Loading…
Reference in a new issue