Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
takost committed Jan 10, 2024
1 parent 0122982 commit e718767
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions src/saveImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ import * as utils from "./utils/actionUtils";
// throw an uncaught exception. Instead of failing this action, just warn.
process.on("uncaughtException", e => utils.logWarning(e.message));

export async function saveImpl(stateProvider: IStateProvider): Promise<number | void> {
export async function saveImpl(
stateProvider: IStateProvider
): Promise<number | void> {
let cacheId = -1;
try {
if (!utils.isCacheFeatureAvailable()) {
Expand Down Expand Up @@ -76,7 +78,9 @@ export async function saveImpl(stateProvider: IStateProvider): Promise<number |
return cacheId;
}

export async function saveOnlyRun(earlyExit?: boolean | undefined): Promise<void> {
export async function saveOnlyRun(
earlyExit?: boolean | undefined
): Promise<void> {
try {
const cacheId = await saveImpl(new NullStateProvider());
if (cacheId === -1) {
Expand Down Expand Up @@ -118,4 +122,3 @@ export async function saveRun(earlyExit?: boolean | undefined): Promise<void> {
process.exit(0);
}
}

2 changes: 1 addition & 1 deletion src/saveOnly.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { saveOnlyRun } from "./saveImpl";

saveOnlyRun(true);
saveOnlyRun(true);

0 comments on commit e718767

Please sign in to comment.