mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Remove linting exceptions in nodes-base (no-changelog) (#4944)
This commit is contained in:
@@ -529,7 +529,7 @@ export class Webhook implements INodeType {
|
||||
const fileJson = file.toJSON();
|
||||
returnItem.binary![binaryPropertyName] = await this.helpers.copyBinaryFile(
|
||||
file.path,
|
||||
fileJson.name || fileJson.filename,
|
||||
fileJson.name ?? fileJson.filename,
|
||||
fileJson.type as string,
|
||||
);
|
||||
|
||||
@@ -559,7 +559,7 @@ export class Webhook implements INodeType {
|
||||
},
|
||||
};
|
||||
|
||||
const binaryPropertyName = (options.binaryPropertyName || 'data') as string;
|
||||
const binaryPropertyName = (options.binaryPropertyName ?? 'data') as string;
|
||||
returnItem.binary![binaryPropertyName] = await this.helpers.copyBinaryFile(
|
||||
binaryFile.path,
|
||||
mimeType,
|
||||
|
||||
Reference in New Issue
Block a user