mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
👕 Fix lint issue
This commit is contained in:
parent
17fb31920e
commit
402da3d53e
|
@ -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
|
||||
|
|
|
@ -600,7 +600,7 @@ export class Switch 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();
|
||||
}
|
||||
|
||||
|
@ -608,7 +608,7 @@ export class Switch implements INodeType {
|
|||
throw new Error(`The value "${value}" is not a valid DateTime.`);
|
||||
}
|
||||
|
||||
return returnValue
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
function checkIndexRange(index: number) {
|
||||
|
|
Loading…
Reference in a new issue