From d9c418425b035f00c950e6a83df9470d7af80413 Mon Sep 17 00:00:00 2001 From: Elizabeth Date: Mon, 2 Jun 2025 18:07:31 -0700 Subject: Use log traceable in metric traceable --- u/process/argv.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'u/process') diff --git a/u/process/argv.ts b/u/process/argv.ts index 7190531..8e85477 100644 --- a/u/process/argv.ts +++ b/u/process/argv.ts @@ -37,11 +37,11 @@ export const argv = ( .map((arg) => [arg, getArg(arg, argv)] as [K, IEither]) .map(([arg, specified]): [K, IEither] => [ arg, - specified.fold(({ isLeft, isRight, value}): IEither => { - if (isRight) { - return Either.right(value); - } - const hasDefaultVal = isLeft && defaultArgs && arg in defaultArgs; + specified.fold(({ isLeft, isRight, value }): IEither => { + if (isRight) { + return Either.right(value); + } + const hasDefaultVal = isLeft && defaultArgs && arg in defaultArgs; if (hasDefaultVal) { return Either.right(defaultArgs[arg]!); } -- cgit v1.2.3-70-g09d2