Skip to content

Commit

Permalink
Merge pull request #40 from keyoke/keyoke/features
Browse files Browse the repository at this point in the history
fix lint errors
  • Loading branch information
keyoke authored Sep 29, 2021
2 parents d9b75bb + 88bd0ca commit 914629d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/import-csv-discussions-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ class ImportCSVDiscussionsAction implements IContributedMenuSource {
_json2csvParser = new Parser();
_failures: any[] = [];

constructor() {}

public showFileUpload() {
SDK.getService('ms.vss-web.dialog-service').then(
async (dialogService: any) => {
Expand Down Expand Up @@ -270,7 +268,7 @@ class ImportCSVDiscussionsAction implements IContributedMenuSource {
accessToken: string,
record: any
): Promise<boolean> {
return new Promise(async (resolve, reject) => {
return new Promise((resolve, reject) => {
const header: Array<string> = [];
const cols: Array<string> = [];

Expand Down Expand Up @@ -310,7 +308,7 @@ class ImportCSVDiscussionsAction implements IContributedMenuSource {

this._logger.info(`Adding comment for id '${record.WorkItemId}'`);

const response: Response = await this._fetch(url, {
this._fetch(url, {
method: 'POST',
headers: {
Authorization: `Bearer ${accessToken}`,
Expand Down

0 comments on commit 914629d

Please sign in to comment.