refactor(core): Remove linting exceptions in nodes-base (no-changelog) (#4944)

This commit is contained in:
Michael Kret
2023-01-13 19:11:56 +02:00
committed by GitHub
parent d7732ea150
commit 6608e69457
254 changed files with 2687 additions and 2675 deletions

View File

@@ -22,7 +22,7 @@ export async function scorecardApiRequest(
headers: headerWithAuthentication,
method,
qs: query,
uri: uri || `https://api.securityscorecard.io/${resource}`,
uri: uri ?? `https://api.securityscorecard.io/${resource}`,
body,
json: true,
};

View File

@@ -267,7 +267,7 @@ export class SecurityScorecard implements INodeType {
body.date = this.getNodeParameter('date', i);
}
if (['issues', 'portfolio'].indexOf(reportType) > -1) {
body.format = this.getNodeParameter('options.format', i) || 'pdf';
body.format = this.getNodeParameter('options.format', i) ?? 'pdf';
}
if (['detailed', 'summary'].indexOf(reportType) > -1) {
body.branding = this.getNodeParameter('branding', i);