mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-622] No implicit returns (#5157)
* enable noImplicitReturns rule * type fixes * fix return types * fix return value * fix tests * fix visibility service * update tests * add missing types * fix test
This commit is contained in:
@@ -34,6 +34,13 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
|
||||
if (key || key === '') {
|
||||
return of(this.prepareLocalPreferenceResponse(key));
|
||||
}
|
||||
return of(
|
||||
{
|
||||
'list': {
|
||||
'entries': []
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -70,8 +77,8 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
|
||||
updatePreference(_: string, key: string, updatedPreference: any): Observable<any> {
|
||||
if (key) {
|
||||
this.storage.setItem(key, JSON.stringify(updatedPreference));
|
||||
return of(updatedPreference);
|
||||
}
|
||||
return of(updatedPreference);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -84,8 +91,8 @@ export class LocalPreferenceCloudService implements PreferenceCloudServiceInterf
|
||||
deletePreference(key: string, preferences: any): Observable<any> {
|
||||
if (key) {
|
||||
this.storage.setItem(key, JSON.stringify(preferences));
|
||||
return of(preferences);
|
||||
}
|
||||
return of(preferences);
|
||||
}
|
||||
|
||||
prepareLocalPreferenceResponse(key: string): any {
|
||||
|
Reference in New Issue
Block a user