fix eslint warnigs for core project (#7506)

This commit is contained in:
Denys Vuika
2022-02-17 14:35:33 +00:00
committed by GitHub
parent 5b7f255eec
commit bca5a783ab
246 changed files with 5127 additions and 5065 deletions

View File

@@ -38,9 +38,7 @@ export class CoreAutomationService {
setup() {
const adfProxy = window['adf'] || {};
adfProxy.getConfigField = (field: string): any => {
return this.appConfigService.get(field);
};
adfProxy.getConfigField = (field: string): any => this.appConfigService.get(field);
adfProxy.setConfigField = (field: string, value: string) => {
this.appConfigService.config[field] = JSON.parse(value);
@@ -54,9 +52,7 @@ export class CoreAutomationService {
this.storageService.removeItem(key);
};
adfProxy.getStorageItem = (key: string): string => {
return this.storageService.getItem(key);
};
adfProxy.getStorageItem = (key: string): string => this.storageService.getItem(key);
adfProxy.setUserPreference = (key: string, data: any) => {
this.userPreferencesService.set(key, data);