Skip to content

Commit

Permalink
chore: clean up dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
viet nguyen committed May 19, 2023
1 parent 5766f0b commit af5dca0
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/utils/sanitize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,3 @@ export const sanitizeStrict = (text: string): string => sanitizeHtml(text, {
export const trimToNull = (text?: string): string | null => {
return text?.trim() ?? null
}

// export const trimInputObjectToNull = (input: Record<string, string | undefined >): Record<string, string | undefined > | null => {
// const o: Record<string, string | undefined > = {}

// for (const k in input) {
// if (trimToNull(input[k]) == null) {
// o[k] = 'j'
// }
// }
// if (Object.keys(o).length === 0) {
// return null
// }

// return o
// }

0 comments on commit af5dca0

Please sign in to comment.