ci: Fix linting on master (no-changelog) (#4830)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2022-12-06 11:57:28 +01:00 committed by GitHub
parent eb112ffd23
commit 8c9681e8ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -71,7 +71,7 @@ export async function koBoToolboxRawRequest(
option.url = credentials.URL + option.url;
}
return await this.helpers.httpRequestWithAuthentication.call(this, 'koBoToolboxApi', option);
return this.helpers.httpRequestWithAuthentication.call(this, 'koBoToolboxApi', option);
}
function parseGeoPoint(geoPoint: string): null | number[] {

View file

@ -392,7 +392,7 @@ export class KoBoToolbox implements INodeType {
if (operation === 'get') {
const fileId = this.getNodeParameter('fileId', i) as string;
const download = this.getNodeParameter('download', i) as boolean;
const download = this.getNodeParameter('download', i);
responseData = [
await koBoToolboxApiRequest.call(this, {
@ -400,7 +400,7 @@ export class KoBoToolbox implements INodeType {
}),
];
if (responseData && responseData[0] && download) {
if (responseData?.[0] && download) {
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', i) as string;
const binaryItem: INodeExecutionData = {
@ -444,7 +444,7 @@ export class KoBoToolbox implements INodeType {
if ('binary' === fileMode) {
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', i) as string;
const item = items[i].binary as IBinaryKeyData;
const binaryData = item[binaryPropertyName] as IBinaryData;
const binaryData = item[binaryPropertyName];
body.base64Encoded = 'data:' + binaryData.mimeType + ';base64,' + binaryData.data;
body.metadata = {