Remove else branch

This commit is contained in:
Luc Perkins 2024-06-03 15:51:58 -07:00
parent 6a141808e0
commit e789896996
No known key found for this signature in database
GPG Key ID: 16DB1108FB591835
3 changed files with 26 additions and 27 deletions

23
dist/index.js generated vendored
View File

@ -95536,19 +95536,18 @@ var MagicNixCacheAction = class extends DetSysAction {
async post() {
if (!this.strictMode && this.mainError) {
this.exitWithWarning(this.mainError);
} else {
if (this.noopMode) {
core.debug(TEXT_NOOP);
return;
}
if (this.nixStoreTrust === "untrusted") {
core.debug(TEXT_TRUST_UNTRUSTED);
return;
} else if (this.nixStoreTrust === "unknown") {
core.debug(TEXT_TRUST_UNKNOWN);
}
await this.tearDownAutoCache();
}
if (this.noopMode) {
core.debug(TEXT_NOOP);
return;
}
if (this.nixStoreTrust === "untrusted") {
core.debug(TEXT_TRUST_UNTRUSTED);
return;
} else if (this.nixStoreTrust === "unknown") {
core.debug(TEXT_TRUST_UNKNOWN);
}
await this.tearDownAutoCache();
}
async setUpAutoCache() {
const requiredEnv = [

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -111,21 +111,21 @@ class MagicNixCacheAction extends DetSysAction {
// then the post phase is skipped with a warning.
if (!this.strictMode && this.mainError) {
this.exitWithWarning(this.mainError);
} else {
if (this.noopMode) {
actionsCore.debug(TEXT_NOOP);
return;
}
if (this.nixStoreTrust === "untrusted") {
actionsCore.debug(TEXT_TRUST_UNTRUSTED);
return;
} else if (this.nixStoreTrust === "unknown") {
actionsCore.debug(TEXT_TRUST_UNKNOWN);
}
await this.tearDownAutoCache();
}
if (this.noopMode) {
actionsCore.debug(TEXT_NOOP);
return;
}
if (this.nixStoreTrust === "untrusted") {
actionsCore.debug(TEXT_TRUST_UNTRUSTED);
return;
} else if (this.nixStoreTrust === "unknown") {
actionsCore.debug(TEXT_TRUST_UNKNOWN);
}
await this.tearDownAutoCache();
}
async setUpAutoCache(): Promise<void> {