Skip to content

Commit 5e86356

Browse files
committed
style: run prettier
1 parent 7525bc0 commit 5e86356

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/lock/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@
7070
"url": "https://github.com/CSenshi/nestjs-redis",
7171
"directory": "packages/lock"
7272
}
73-
}
73+
}

packages/lock/src/lib/redlock/redlock.decorator.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ function getKeys(key: string | string[]): string[] {
9494
} else if (typeof key === 'string') {
9595
return [key];
9696
} else {
97-
throw new Error(`Invalid key type: ${typeof key}. Expected string or string[].`);
97+
throw new Error(
98+
`Invalid key type: ${typeof key}. Expected string or string[].`,
99+
);
98100
}
99101
}
100-

0 commit comments

Comments
 (0)