[MIGRATION] - Fixed lint errors for empty function

This commit is contained in:
VitoAlbano
2024-08-05 23:06:04 +01:00
parent cf175c67b8
commit 1c339a926b
867 changed files with 2147 additions and 2153 deletions

View File

@@ -25,7 +25,7 @@ export class CheckEnv {
_alfrescoJsApi: AlfrescoApi;
counter = 0;
constructor(private host: string, private username: string, private password: string, private clientId: string = 'alfresco') {}
constructor(private host: string, private username: string, private password: string, private clientId: string = 'alfresco') { /* empty */ }
async checkEnv() {
try {
@@ -71,6 +71,6 @@ export class CheckEnv {
sleep(delay: number) {
const start = new Date().getTime();
while (new Date().getTime() < start + delay) {}
while (new Date().getTime() < start + delay) { /* empty */ }
}
}

View File

@@ -22,7 +22,7 @@ import { PluginInterface } from './plugin-model';
import { AlfrescoApi, GsSitesApi } from '@alfresco/js-api';
export class GovernanceHealth {
constructor(private pluginInfo: PluginInterface, private alfrescoJsApi: AlfrescoApi) {}
constructor(private pluginInfo: PluginInterface, private alfrescoJsApi: AlfrescoApi) { /* empty */ }
async isRecordManagementAvailable(): Promise<boolean> {
try {

View File

@@ -20,18 +20,18 @@ import { logger } from '../logger';
import { AlfrescoApi } from '@alfresco/js-api';
export class PluginConfiguration {
constructor(private plugInInfo: PluginInterface, private alfrescoJsApi: AlfrescoApi) {}
constructor(private plugInInfo: PluginInterface, private alfrescoJsApi: AlfrescoApi) { /* empty */ }
async getAppConfig(url: string) {
return this.callCustomApi(url);
}
async callCustomApi(url: string) {
const pathParams = {};
const headerParams = {};
const formParams = {};
const bodyParam = {};
const queryParams = {};
const pathParams = { /* empty */ };
const headerParams = { /* empty */ };
const formParams = { /* empty */ };
const bodyParam = { /* empty */ };
const queryParams = { /* empty */ };
const contentTypes = ['application/json'];
const accepts = ['application/json'];
@@ -51,7 +51,7 @@ export class PluginConfiguration {
return response;
} catch (error) {
logger.error(`${this.plugInInfo.host} is not reachable error: `, error);
return {};
return { /* empty */ };
}
}
}