Use map methods in app context init
Change-Id: I585201e3bdc48125f3ff655ce3120004753b6cc2
This commit is contained in:
		@@ -21,10 +21,10 @@ import {GrReporting} from './gr-reporting/gr-reporting.js';
 | 
			
		||||
const initializedServices = new Map();
 | 
			
		||||
 | 
			
		||||
function getService(serviceName, serviceInit) {
 | 
			
		||||
  if (!initializedServices[serviceName]) {
 | 
			
		||||
    initializedServices[serviceName] = serviceInit();
 | 
			
		||||
  if (!initializedServices.has(serviceName)) {
 | 
			
		||||
    initializedServices.set(serviceName, serviceInit());
 | 
			
		||||
  }
 | 
			
		||||
  return initializedServices[serviceName];
 | 
			
		||||
  return initializedServices.get(serviceName);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user