a11smiles / GitSync

Unnecessary return await function found JS-0111
Performance
Major
3 months ago2 years old
Redundant use of await on a return value
569            }
570        ];
571
572        return await this.updateWorkItem(config, patchDoc);573    }
574
575    async updateWorkItem(config, patchDoc) {
Redundant use of await on a return value
548            }
549        ];
550
551        return await this.updateWorkItem(config, patchDoc);552    }
553
554    async addComment(config) {
Redundant use of await on a return value
530            value: `GitHub issue #${config.issue.number}: <a href="${this.cleanUrl(config.issue.url)}" target="_new">${config.issue.title}</a> in <a href="${this.cleanUrl(config.issue.repository_url)}" target="_blank">${config.repository.full_name}</a> assigned to '${config.assignee.login}' by <a href="${config.issue.user.html_url}" target="_blank">${config.issue.user.login}</a>`
531        });
532
533        return await this.updateWorkItem(config, patchDoc);534    }
535
536    async unassignWorkItem(config) {
Redundant use of await on a return value
502                }
503            ];
504
505            return await this.updateWorkItem(config, patchDoc);506        });
507    }
508
Redundant use of await on a return value
477            }
478        ];
479
480        return await this.updateWorkItem(config, patchDoc);481    }
482
483    async unlabelWorkItem(config) {