mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[MIGRATION] - Fixed lint errors for empty function
This commit is contained in:
@@ -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 */ }
|
||||
}
|
||||
}
|
||||
|
@@ -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 {
|
||||
|
@@ -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 */ };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user