summaryrefslogtreecommitdiff
path: root/u/process
diff options
context:
space:
mode:
authorElizabeth <me@liz.coffee>2025-06-02 18:07:31 -0700
committerElizabeth <me@liz.coffee>2025-06-02 18:07:31 -0700
commitd9c418425b035f00c950e6a83df9470d7af80413 (patch)
tree07c7445d7800a6ac6a3cf6b404ebcf4e27aad245 /u/process
parent98f5c21aa65bbbca01a186a754249335b4afef57 (diff)
downloadci-d9c418425b035f00c950e6a83df9470d7af80413.tar.gz
ci-d9c418425b035f00c950e6a83df9470d7af80413.zip
Use log traceable in metric traceable
Diffstat (limited to 'u/process')
-rw-r--r--u/process/argv.ts10
1 files changed, 5 insertions, 5 deletions
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 = <K extends string, V extends string>(
.map((arg) => [arg, getArg(arg, argv)] as [K, IEither<Error, V>])
.map(([arg, specified]): [K, IEither<Error, V>] => [
arg,
- specified.fold(({ isLeft, isRight, value}): IEither<Error, V> => {
- if (isRight) {
- return Either.right(value);
- }
- const hasDefaultVal = isLeft && defaultArgs && arg in defaultArgs;
+ specified.fold(({ isLeft, isRight, value }): IEither<Error, V> => {
+ if (isRight) {
+ return Either.right(value);
+ }
+ const hasDefaultVal = isLeft && defaultArgs && arg in defaultArgs;
if (hasDefaultVal) {
return Either.right(defaultArgs[arg]!);
}