mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-26 01:12:17 +01:00
Remove else branch
This commit is contained in:
parent
6a141808e0
commit
e789896996
3 changed files with 26 additions and 27 deletions
23
dist/index.js
generated
vendored
23
dist/index.js
generated
vendored
|
@ -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
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
28
src/index.ts
28
src/index.ts
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue