mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-26 17:30:34 +01:00
Remove else branch
This commit is contained in:
parent
6a141808e0
commit
e789896996
3 changed files with 26 additions and 27 deletions
3
dist/index.js
generated
vendored
3
dist/index.js
generated
vendored
|
@ -95536,7 +95536,7 @@ var MagicNixCacheAction = class extends DetSysAction {
|
||||||
async post() {
|
async post() {
|
||||||
if (!this.strictMode && this.mainError) {
|
if (!this.strictMode && this.mainError) {
|
||||||
this.exitWithWarning(this.mainError);
|
this.exitWithWarning(this.mainError);
|
||||||
} else {
|
}
|
||||||
if (this.noopMode) {
|
if (this.noopMode) {
|
||||||
core.debug(TEXT_NOOP);
|
core.debug(TEXT_NOOP);
|
||||||
return;
|
return;
|
||||||
|
@ -95549,7 +95549,6 @@ var MagicNixCacheAction = class extends DetSysAction {
|
||||||
}
|
}
|
||||||
await this.tearDownAutoCache();
|
await this.tearDownAutoCache();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
async setUpAutoCache() {
|
async setUpAutoCache() {
|
||||||
const requiredEnv = [
|
const requiredEnv = [
|
||||||
"ACTIONS_CACHE_URL",
|
"ACTIONS_CACHE_URL",
|
||||||
|
|
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
|
@ -111,7 +111,8 @@ class MagicNixCacheAction extends DetSysAction {
|
||||||
// then the post phase is skipped with a warning.
|
// then the post phase is skipped with a warning.
|
||||||
if (!this.strictMode && this.mainError) {
|
if (!this.strictMode && this.mainError) {
|
||||||
this.exitWithWarning(this.mainError);
|
this.exitWithWarning(this.mainError);
|
||||||
} else {
|
}
|
||||||
|
|
||||||
if (this.noopMode) {
|
if (this.noopMode) {
|
||||||
actionsCore.debug(TEXT_NOOP);
|
actionsCore.debug(TEXT_NOOP);
|
||||||
return;
|
return;
|
||||||
|
@ -126,7 +127,6 @@ class MagicNixCacheAction extends DetSysAction {
|
||||||
|
|
||||||
await this.tearDownAutoCache();
|
await this.tearDownAutoCache();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
async setUpAutoCache(): Promise<void> {
|
async setUpAutoCache(): Promise<void> {
|
||||||
const requiredEnv = [
|
const requiredEnv = [
|
||||||
|
|
Loading…
Reference in a new issue