mirror of
https://github.com/zadam/trilium.git
synced 2025-11-15 17:55:52 +01:00
server-ts: Address requested changes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user