Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Commit

Permalink
remove useless variable
Browse files Browse the repository at this point in the history
fix lint warnings
  • Loading branch information
Undermaken committed Jun 17, 2019
1 parent 9e4cf9b commit 177126b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/commands/messages/attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ import { Command, flags } from "@oclif/command";
import cli from "cli-ux";
import * as parse from "csv-parse";
import * as fs from "fs";
import * as t from "io-ts";
import * as transform from "stream-transform";

import {
config,
getCosmosEndpoint,
getCosmosReadonlyKey,
getCosmosWriteKey
} from "../../utils/azure";
import { parseMessagePath } from "../../utils/parser";
Expand Down Expand Up @@ -42,6 +40,7 @@ export default class MessagesAttributes extends Command {
this.exit();
}

// tslint:disable-next-line: no-inferred-empty-object-type
const messageDelta = [
{
key: "isPending",
Expand Down Expand Up @@ -95,7 +94,7 @@ export default class MessagesAttributes extends Command {
cli.action.stop();

const client = new cosmos.CosmosClient({ endpoint, auth: { key } });
const database = await client.database(config.cosmosDatabaseName);
const database = client.database(config.cosmosDatabaseName);
const container = database.container(config.cosmosMessagesContainer);

const updateMessage = async (fiscalCode: string, messageId: string) => {
Expand Down Expand Up @@ -133,7 +132,7 @@ export default class MessagesAttributes extends Command {
.pipe(transformer)
.pipe(process.stdout);

await new Promise((res, rej) => parser.on("end", res));
await new Promise((res, _) => parser.on("end", res));
} catch (e) {
this.error(e);
}
Expand Down

0 comments on commit 177126b

Please sign in to comment.