diff --git a/sdk/search/search-documents/package.json b/sdk/search/search-documents/package.json index dcfce451932b..69e13f37362b 100644 --- a/sdk/search/search-documents/package.json +++ b/sdk/search/search-documents/package.json @@ -60,7 +60,7 @@ }, "repository": "github:Azure/azure-sdk-for-js", "keywords": [ - "Azure", + "azure", "cloud" ], "author": "Microsoft Corporation", diff --git a/sdk/search/search-documents/src/searchClient.ts b/sdk/search/search-documents/src/searchClient.ts index 1fe10b8ba244..28025c8053e4 100644 --- a/sdk/search/search-documents/src/searchClient.ts +++ b/sdk/search/search-documents/src/searchClient.ts @@ -248,7 +248,7 @@ export class SearchClient { const { results, count, coverage, facets, nextLink, nextPageParameters } = result; - let modifiedResults = utils.generatedSearchResultToPublicSearchResult(results); + const modifiedResults = utils.generatedSearchResultToPublicSearchResult(results); const converted: SearchDocumentsPageResult = { results: modifiedResults, diff --git a/sdk/search/search-documents/test/odata.spec.ts b/sdk/search/search-documents/test/odata.spec.ts index 914d48879a99..f0a5ff79126f 100644 --- a/sdk/search/search-documents/test/odata.spec.ts +++ b/sdk/search/search-documents/test/odata.spec.ts @@ -50,7 +50,7 @@ describe("odata", () => { }); it("bool", () => { - let x: boolean = true; + const x: boolean = true; assert.strictEqual(odata`Foo eq ${x}`, "Foo eq true"); assert.strictEqual(odata`Foo eq ${true}`, "Foo eq true"); }); diff --git a/sdk/search/search-documents/test/utils/setup.ts b/sdk/search/search-documents/test/utils/setup.ts index 33ff900ccdd2..0a39f718cc24 100644 --- a/sdk/search/search-documents/test/utils/setup.ts +++ b/sdk/search/search-documents/test/utils/setup.ts @@ -435,7 +435,7 @@ export async function createDataSourceConnections(client: SearchIndexerClient): assert.fail("Subscription has other datasource connections not related to this testing."); } - for (let dataSourceConnectionName of dataSourceConnectionNames) { + for (const dataSourceConnectionName of dataSourceConnectionNames) { await client.deleteDataSourceConnection(dataSourceConnectionName); } @@ -475,7 +475,7 @@ export async function createSkillsets(client: SearchIndexerClient): Promise assert.fail("Subscription has other indexers not related to this testing."); } - for (let indexer of indexerNames) { + for (const indexer of indexerNames) { await client.deleteIndexer(indexer); } @@ -569,7 +569,7 @@ export async function createSynonymMaps(client: SearchIndexClient): Promise { - let index: SearchIndex = { + const index: SearchIndex = { name, fields: [ { diff --git a/sdk/search/search-documents/test/utils/setupIndex.ts b/sdk/search/search-documents/test/utils/setupIndex.ts index 2ad3eff35147..e6ba034b847f 100644 --- a/sdk/search/search-documents/test/utils/setupIndex.ts +++ b/sdk/search/search-documents/test/utils/setupIndex.ts @@ -551,7 +551,7 @@ export async function deleteSynonymMaps(client: SearchIndexClient): Promise { - let index: SearchIndex = { + const index: SearchIndex = { name, fields: [ {