From e71876755e268d6cc25a5d3e3c46ae447e35290a Mon Sep 17 00:00:00 2001 From: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com> Date: Wed, 10 Jan 2024 15:40:24 +0000 Subject: [PATCH] Fix format --- src/saveImpl.ts | 9 ++++++--- src/saveOnly.ts | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/saveImpl.ts b/src/saveImpl.ts index 640df8b..4e5c312 100644 --- a/src/saveImpl.ts +++ b/src/saveImpl.ts @@ -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 { +export async function saveImpl( + stateProvider: IStateProvider +): Promise { let cacheId = -1; try { if (!utils.isCacheFeatureAvailable()) { @@ -76,7 +78,9 @@ export async function saveImpl(stateProvider: IStateProvider): Promise { +export async function saveOnlyRun( + earlyExit?: boolean | undefined +): Promise { try { const cacheId = await saveImpl(new NullStateProvider()); if (cacheId === -1) { @@ -118,4 +122,3 @@ export async function saveRun(earlyExit?: boolean | undefined): Promise { process.exit(0); } } - diff --git a/src/saveOnly.ts b/src/saveOnly.ts index 171240b..db26831 100644 --- a/src/saveOnly.ts +++ b/src/saveOnly.ts @@ -1,3 +1,3 @@ import { saveOnlyRun } from "./saveImpl"; -saveOnlyRun(true); \ No newline at end of file +saveOnlyRun(true);