Skip to content

Commit

Permalink
Use coalescing instead of or
Browse files Browse the repository at this point in the history
  • Loading branch information
lucperkins committed Jun 3, 2024
1 parent 1025a55 commit f92f108
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand Down

0 comments on commit f92f108

Please sign in to comment.