@@ -111,7 +111,7 @@ export async function findPeople(
111111 const scopes = 'people.read' ;
112112
113113 let cache : CacheStore < CachePeopleQuery > ;
114- let cacheKey = `${ query } :${ top } :${ userType } ` ;
114+ const cacheKey = `${ query } :${ top } :${ userType } ` ;
115115
116116 if ( getIsPeopleCacheEnabled ( ) ) {
117117 cache = CacheService . getCache < CachePeopleQuery > ( schemas . people , schemas . people . stores . peopleQuery ) ;
@@ -145,7 +145,7 @@ export async function findPeople(
145145 . filter ( filter )
146146 . middlewareOptions ( prepScopes ( scopes ) ) ;
147147
148- if ( userType != UserType . contact ) {
148+ if ( userType !== UserType . contact ) {
149149 // for any type other than Contact, user a wider search
150150 graphRequest = graphRequest . header ( 'X-PeopleQuery-QuerySources' , 'Mailbox,Directory' ) ;
151151 }
@@ -157,7 +157,9 @@ export async function findPeople(
157157 item . results = graphResult . value . map ( personStr => JSON . stringify ( personStr ) ) ;
158158 cache . putValue ( cacheKey , item ) ;
159159 }
160- } catch ( error ) { }
160+ } catch ( error ) {
161+ // intentionally empty
162+ }
161163 return graphResult ? graphResult . value : null ;
162164}
163165
@@ -175,7 +177,7 @@ export async function getPeople(
175177 const scopes = 'people.read' ;
176178
177179 let cache : CacheStore < CachePeopleQuery > ;
178- let cacheKey = peopleFilters ? peopleFilters : `*:${ userType } ` ;
180+ const cacheKey = peopleFilters ? peopleFilters : `*:${ userType } ` ;
179181
180182 if ( getIsPeopleCacheEnabled ( ) ) {
181183 cache = CacheService . getCache < CachePeopleQuery > ( schemas . people , schemas . people . stores . peopleQuery ) ;
@@ -255,7 +257,7 @@ export async function findContactsByEmail(graph: IGraph, email: string): Promise
255257 }
256258 }
257259
258- let encodedEmail = `${ email . replace ( / # / g, '%2523' ) } ` ;
260+ const encodedEmail = `${ email . replace ( / # / g, '%2523' ) } ` ;
259261
260262 const result = await graph
261263 . api ( '/me/contacts' )
0 commit comments