mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-13 16:14:07 -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();
|
returnValue = new Date(value).getTime();
|
||||||
} else if (typeof value === 'number') {
|
} else if (typeof value === 'number') {
|
||||||
returnValue = value;
|
returnValue = value;
|
||||||
} if ((value as any) instanceof Date) {
|
} if ((value as unknown as object) instanceof Date) {
|
||||||
returnValue = (value as unknown as Date).getTime();
|
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.`);
|
throw new Error(`The value "${value}" is not a valid DateTime.`);
|
||||||
}
|
}
|
||||||
|
|
||||||
return returnValue
|
return returnValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The different dataTypes to check the values in
|
// The different dataTypes to check the values in
|
||||||
|
|
|
@ -600,7 +600,7 @@ export class Switch implements INodeType {
|
||||||
returnValue = new Date(value).getTime();
|
returnValue = new Date(value).getTime();
|
||||||
} else if (typeof value === 'number') {
|
} else if (typeof value === 'number') {
|
||||||
returnValue = value;
|
returnValue = value;
|
||||||
} if ((value as any) instanceof Date) {
|
} if ((value as unknown as object) instanceof Date) {
|
||||||
returnValue = (value as unknown as Date).getTime();
|
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.`);
|
throw new Error(`The value "${value}" is not a valid DateTime.`);
|
||||||
}
|
}
|
||||||
|
|
||||||
return returnValue
|
return returnValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkIndexRange(index: number) {
|
function checkIndexRange(index: number) {
|
||||||
|
|
Loading…
Reference in a new issue