Skip to content

Commit 6d19ecc

Browse files
committed
Cleanup
1 parent b1af840 commit 6d19ecc

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/services/redis-cache.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ export function createRedisCache(): Cache {
88
return {
99
async get<T>(key: string): Promise<T | undefined> {
1010
const value = await Bun.redis.get(key);
11-
if (value === null) {
12-
return undefined;
13-
}
11+
if (value == null) return undefined;
12+
1413
return JSON.parse(value) as T;
1514
},
1615
async set<T>(key: string, value: T): Promise<void> {

0 commit comments

Comments
 (0)