Merge pull request #2320 from dpalou/MOBILE-3269

MOBILE-3269 core: Fix return type of objectToKeyValueMap
main
Juan Leyva 2020-03-17 09:34:23 +01:00 committed by GitHub
commit e41762e5ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1105,7 +1105,7 @@ export class CoreUtilsProvider {
* @param keyPrefix Key prefix if neededs to delete it. * @param keyPrefix Key prefix if neededs to delete it.
* @return Object. * @return Object.
*/ */
objectToKeyValueMap(objects: object[], keyName: string, valueName: string, keyPrefix?: string): object { objectToKeyValueMap(objects: object[], keyName: string, valueName: string, keyPrefix?: string): {[name: string]: any} {
if (!objects) { if (!objects) {
return; return;
} }