Skip to content

Commit

Permalink
refactor: remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed May 8, 2024
1 parent a2f3f5a commit 57d2c86
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/util.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { randomBytes } from "crypto";

export function hasBinary(obj: any, toJSON?: boolean): boolean {
if (!obj || typeof obj !== "object") {
return false;
Expand Down Expand Up @@ -31,10 +29,6 @@ export function hasBinary(obj: any, toJSON?: boolean): boolean {
return false;
}

export function randomId() {
return randomBytes(8).toString("hex");
}

/**
* Whether the client comes from the `redis` package
*
Expand Down

0 comments on commit 57d2c86

Please sign in to comment.