👕 Fix lint issue

This commit is contained in:
Jan Oberhauser
2021-02-27 13:06:13 +01:00
parent 17fb31920e
commit 402da3d53e
2 changed files with 4 additions and 4 deletions

View File

@@ -332,7 +332,7 @@ export class If implements INodeType {
returnValue = new Date(value).getTime();
} else if (typeof value === 'number') {
returnValue = value;
} if ((value as any) instanceof Date) {
} if ((value as unknown as object) instanceof Date) {
returnValue = (value as unknown as Date).getTime();
}
@@ -340,7 +340,7 @@ export class If implements INodeType {
throw new Error(`The value "${value}" is not a valid DateTime.`);
}
return returnValue
return returnValue;
}
// The different dataTypes to check the values in