mirror of
https://github.com/DeterminateSystems/nix-installer-action.git
synced 2024-12-23 13:32:06 +01:00
Prefer coalescing over or-ing
This commit is contained in:
parent
b87931b2dd
commit
a2856cdfd2
3 changed files with 6 additions and 6 deletions
4
dist/index.js
generated
vendored
4
dist/index.js
generated
vendored
|
@ -97933,7 +97933,7 @@ class NixInstallerAction {
|
||||||
executionEnv.NIX_INSTALLER_SSL_CERT_FILE = this.sslCertFile;
|
executionEnv.NIX_INSTALLER_SSL_CERT_FILE = this.sslCertFile;
|
||||||
}
|
}
|
||||||
executionEnv.NIX_INSTALLER_DIAGNOSTIC_ENDPOINT =
|
executionEnv.NIX_INSTALLER_DIAGNOSTIC_ENDPOINT =
|
||||||
this.idslib.getDiagnosticsUrl()?.toString() || "";
|
this.idslib.getDiagnosticsUrl()?.toString() ?? "";
|
||||||
// TODO: Error if the user uses these on not-MacOS
|
// TODO: Error if the user uses these on not-MacOS
|
||||||
if (this.macEncrypt !== null) {
|
if (this.macEncrypt !== null) {
|
||||||
if (runnerOs !== "macOS") {
|
if (runnerOs !== "macOS") {
|
||||||
|
@ -98383,7 +98383,7 @@ class NixInstallerAction {
|
||||||
if (job === undefined) {
|
if (job === undefined) {
|
||||||
return "no-jobs";
|
return "no-jobs";
|
||||||
}
|
}
|
||||||
const outcomes = (job.steps || []).map((j) => j.conclusion || "unknown");
|
const outcomes = (job.steps ?? []).map((j) => j.conclusion ?? "unknown");
|
||||||
// Possible values: success, failure, cancelled, or skipped
|
// Possible values: success, failure, cancelled, or skipped
|
||||||
// from: https://docs.github.com/en/actions/learn-github-actions/contexts
|
// from: https://docs.github.com/en/actions/learn-github-actions/contexts
|
||||||
if (outcomes.includes("failure")) {
|
if (outcomes.includes("failure")) {
|
||||||
|
|
4
dist/main.js
generated
vendored
4
dist/main.js
generated
vendored
|
@ -269,7 +269,7 @@ class NixInstallerAction {
|
||||||
executionEnv.NIX_INSTALLER_SSL_CERT_FILE = this.sslCertFile;
|
executionEnv.NIX_INSTALLER_SSL_CERT_FILE = this.sslCertFile;
|
||||||
}
|
}
|
||||||
executionEnv.NIX_INSTALLER_DIAGNOSTIC_ENDPOINT =
|
executionEnv.NIX_INSTALLER_DIAGNOSTIC_ENDPOINT =
|
||||||
this.idslib.getDiagnosticsUrl()?.toString() || "";
|
this.idslib.getDiagnosticsUrl()?.toString() ?? "";
|
||||||
// TODO: Error if the user uses these on not-MacOS
|
// TODO: Error if the user uses these on not-MacOS
|
||||||
if (this.macEncrypt !== null) {
|
if (this.macEncrypt !== null) {
|
||||||
if (runnerOs !== "macOS") {
|
if (runnerOs !== "macOS") {
|
||||||
|
@ -719,7 +719,7 @@ class NixInstallerAction {
|
||||||
if (job === undefined) {
|
if (job === undefined) {
|
||||||
return "no-jobs";
|
return "no-jobs";
|
||||||
}
|
}
|
||||||
const outcomes = (job.steps || []).map((j) => j.conclusion || "unknown");
|
const outcomes = (job.steps ?? []).map((j) => j.conclusion ?? "unknown");
|
||||||
// Possible values: success, failure, cancelled, or skipped
|
// Possible values: success, failure, cancelled, or skipped
|
||||||
// from: https://docs.github.com/en/actions/learn-github-actions/contexts
|
// from: https://docs.github.com/en/actions/learn-github-actions/contexts
|
||||||
if (outcomes.includes("failure")) {
|
if (outcomes.includes("failure")) {
|
||||||
|
|
|
@ -360,7 +360,7 @@ class NixInstallerAction {
|
||||||
}
|
}
|
||||||
|
|
||||||
executionEnv.NIX_INSTALLER_DIAGNOSTIC_ENDPOINT =
|
executionEnv.NIX_INSTALLER_DIAGNOSTIC_ENDPOINT =
|
||||||
this.idslib.getDiagnosticsUrl()?.toString() || "";
|
this.idslib.getDiagnosticsUrl()?.toString() ?? "";
|
||||||
|
|
||||||
// TODO: Error if the user uses these on not-MacOS
|
// TODO: Error if the user uses these on not-MacOS
|
||||||
if (this.macEncrypt !== null) {
|
if (this.macEncrypt !== null) {
|
||||||
|
@ -921,7 +921,7 @@ class NixInstallerAction {
|
||||||
return "no-jobs";
|
return "no-jobs";
|
||||||
}
|
}
|
||||||
|
|
||||||
const outcomes = (job.steps || []).map((j) => j.conclusion || "unknown");
|
const outcomes = (job.steps ?? []).map((j) => j.conclusion ?? "unknown");
|
||||||
|
|
||||||
// Possible values: success, failure, cancelled, or skipped
|
// Possible values: success, failure, cancelled, or skipped
|
||||||
// from: https://docs.github.com/en/actions/learn-github-actions/contexts
|
// from: https://docs.github.com/en/actions/learn-github-actions/contexts
|
||||||
|
|
Loading…
Reference in a new issue