Skip to content

Commit

Permalink
[Search] Run lint:fix script (#11445)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a authored Sep 24, 2020
1 parent b88ccb1 commit fe06264
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion sdk/search/search-documents/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
},
"repository": "github:Azure/azure-sdk-for-js",
"keywords": [
"Azure",
"azure",
"cloud"
],
"author": "Microsoft Corporation",
Expand Down
2 changes: 1 addition & 1 deletion sdk/search/search-documents/src/searchClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export class SearchClient<T> {

const { results, count, coverage, facets, nextLink, nextPageParameters } = result;

let modifiedResults = utils.generatedSearchResultToPublicSearchResult<T>(results);
const modifiedResults = utils.generatedSearchResultToPublicSearchResult<T>(results);

const converted: SearchDocumentsPageResult<T> = {
results: modifiedResults,
Expand Down
2 changes: 1 addition & 1 deletion sdk/search/search-documents/test/odata.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
Expand Down
10 changes: 5 additions & 5 deletions sdk/search/search-documents/test/utils/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -475,7 +475,7 @@ export async function createSkillsets(client: SearchIndexerClient): Promise<void
assert.fail("Subscription has other skillsets not related to this testing.");
}

for (let skillSet of skillSetNames) {
for (const skillSet of skillSetNames) {
await client.deleteSkillset(skillSet);
}

Expand Down Expand Up @@ -534,7 +534,7 @@ export async function createIndexers(client: SearchIndexerClient): Promise<void>
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);
}

Expand Down Expand Up @@ -569,7 +569,7 @@ export async function createSynonymMaps(client: SearchIndexClient): Promise<void
assert.fail("Subscription has other synonymmaps not related to this testing.");
}

for (let synonymMap of synonymMapNames) {
for (const synonymMap of synonymMapNames) {
await client.deleteSynonymMap(synonymMap);
}

Expand All @@ -588,7 +588,7 @@ export async function deleteSynonymMaps(client: SearchIndexClient): Promise<void
}

export async function createSimpleIndex(client: SearchIndexClient, name: string): Promise<void> {
let index: SearchIndex = {
const index: SearchIndex = {
name,
fields: [
{
Expand Down
2 changes: 1 addition & 1 deletion sdk/search/search-documents/test/utils/setupIndex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ export async function deleteSynonymMaps(client: SearchIndexClient): Promise<void
}

export async function createSimpleIndex(client: SearchIndexClient, name: string): Promise<void> {
let index: SearchIndex = {
const index: SearchIndex = {
name,
fields: [
{
Expand Down

0 comments on commit fe06264

Please sign in to comment.