server-ts: Address requested changes

This commit is contained in:
Elian Doran
2024-04-16 21:10:39 +03:00
parent 8629993fe4
commit 138be84e45
3 changed files with 7 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ function isString(obj: ValidatorArg) {
}
function isLocalDateTime(obj: ValidatorArg) {
if (obj === undefined || obj === null || typeof obj !== "string") {
if (typeof obj !== "string") {
return;
}
@@ -32,7 +32,7 @@ function isLocalDateTime(obj: ValidatorArg) {
}
function isUtcDateTime(obj: ValidatorArg) {
if (obj === undefined || obj === null || typeof obj !== "string") {
if (typeof obj !== "string") {
return;
}