GeezerVison is showing github.com — Fix format · actions/cache@e718767
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: src/saveImpl.ts +6-3Lines changed: 6 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -14,7 +14,9 @@ import * as utils from "./utils/actionUtils"; |
14 | 14 | // throw an uncaught exception. Instead of failing this action, just warn. |
15 | 15 | process.on("uncaughtException", e => utils.logWarning(e.message)); |
16 | 16 |
|
17 | | -export async function saveImpl(stateProvider: IStateProvider): Promise<number | void> { |
| 17 | +export async function saveImpl( |
| 18 | + stateProvider: IStateProvider |
| 19 | +): Promise<number | void> { |
18 | 20 | let cacheId = -1; |
19 | 21 | try { |
20 | 22 | if (!utils.isCacheFeatureAvailable()) { |
@@ -76,7 +78,9 @@ export async function saveImpl(stateProvider: IStateProvider): Promise<number | |
76 | 78 | return cacheId; |
77 | 79 | } |
78 | 80 |
|
79 | | -export async function saveOnlyRun(earlyExit?: boolean | undefined): Promise<void> { |
| 81 | +export async function saveOnlyRun( |
| 82 | + earlyExit?: boolean | undefined |
| 83 | +): Promise<void> { |
80 | 84 | try { |
81 | 85 | const cacheId = await saveImpl(new NullStateProvider()); |
82 | 86 | if (cacheId === -1) { |
@@ -118,4 +122,3 @@ export async function saveRun(earlyExit?: boolean | undefined): Promise<void> { |
118 | 122 | process.exit(0); |
119 | 123 | } |
120 | 124 | } |
121 | | - |
|
Collapse file
Copy file name to clipboard +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { saveOnlyRun } from "./saveImpl"; |
2 | 2 |
|
3 | | -saveOnlyRun(true); |
| 3 | +saveOnlyRun(true); |