Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
j3lte committed Apr 14, 2023
1 parent 29413c9 commit 54e8eb7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/utils/expr.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
import { Where } from "../Where.ts";

// function isNumber(obj: string): boolean {
// return !Number.isNaN(parseFloat(obj));
// }

type Literal = string | number;

export function handleLiteral(literal: Literal): Literal {
if (typeof literal === "string") {
return `'${literal}'`;
// } else if (isNumber(literal.toString())) {
// return literal;
}
return literal;
}
Expand Down

0 comments on commit 54e8eb7

Please sign in to comment.