👕 Fix lint issue

This commit is contained in:
Jan Oberhauser
2020-10-22 18:00:28 +02:00
parent 53162ba462
commit 546b79bea0
54 changed files with 257 additions and 257 deletions

View File

@@ -19,7 +19,7 @@ export async function googleApiRequest(
body: IDataObject = {},
qs: IDataObject = {},
uri?: string,
headers: IDataObject = {}
headers: IDataObject = {},
): Promise<any> { // tslint:disable-line:no-any
const options: OptionsWithUri = {
headers: {
@@ -43,7 +43,7 @@ export async function googleApiRequest(
return await this.helpers.requestOAuth2.call(
this,
'googleTasksOAuth2Api',
options
options,
);
} catch (error) {
if (error.response && error.response.body && error.response.body.error) {
@@ -53,7 +53,7 @@ export async function googleApiRequest(
errors = errors.map((e: IDataObject) => e.message);
// Try to return the error prettier
throw new Error(
`Google Tasks error response [${error.statusCode}]: ${errors.join('|')}`
`Google Tasks error response [${error.statusCode}]: ${errors.join('|')}`,
);
}
throw error;
@@ -66,7 +66,7 @@ export async function googleApiRequestAllItems(
method: string,
endpoint: string,
body: IDataObject = {},
query: IDataObject = {}
query: IDataObject = {},
): Promise<any> { // tslint:disable-line:no-any
const returnData: IDataObject[] = [];
@@ -79,7 +79,7 @@ export async function googleApiRequestAllItems(
method,
endpoint,
body,
query
query,
);
query.pageToken = responseData['nextPageToken'];
returnData.push.apply(returnData, responseData[propertyName]);