mirror of
https://github.com/DeterminateSystems/nix-installer-action.git
synced 2024-07-14 16:40:25 +03:00
Use coalescing instead of or
This commit is contained in:
parent
1025a55627
commit
f92f10828b
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,
|
debug_probe_urls_body: resp.body,
|
||||||
// eslint-disable-line camelcase
|
// eslint-disable-line camelcase
|
||||||
// eslint-disable-next-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) {
|
} catch (e) {
|
||||||
this.recordEvent("debug-probe-urls:exception", {
|
this.recordEvent("debug-probe-urls:exception", {
|
||||||
|
@ -171,7 +171,7 @@ class NixInstallerAction extends DetSysAction {
|
|||||||
debug_probe_urls_body: resp.body, // eslint-disable-line camelcase
|
debug_probe_urls_body: resp.body, // eslint-disable-line camelcase
|
||||||
// eslint-disable-next-line camelcase
|
// eslint-disable-next-line camelcase
|
||||||
debug_probe_urls_elapsed:
|
debug_probe_urls_elapsed:
|
||||||
(resp.timings.end || 0) - resp.timings.start,
|
(resp.timings.end ?? 0) - resp.timings.start,
|
||||||
});
|
});
|
||||||
} catch (e: unknown) {
|
} catch (e: unknown) {
|
||||||
this.recordEvent("debug-probe-urls:exception", {
|
this.recordEvent("debug-probe-urls:exception", {
|
||||||
|
Loading…
Reference in New Issue
Block a user