mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
Remove promise jsdoc (#641)
This patch removes unnecessary "promise" return types in jsdoc for async functions.
This commit is contained in:
committed by
Andrey Lushnikov
parent
62ececb1c7
commit
42fa3af659
@@ -284,7 +284,7 @@ class Frame {
|
||||
|
||||
/**
|
||||
* @param {string} filePath
|
||||
* @return {!Promise}
|
||||
* @return {!Promise<*>}
|
||||
*/
|
||||
async injectFile(filePath) {
|
||||
let contents = await new Promise((resolve, reject) => {
|
||||
@@ -299,7 +299,6 @@ class Frame {
|
||||
|
||||
/**
|
||||
* @param {string} url
|
||||
* @return {!Promise}
|
||||
*/
|
||||
async addScriptTag(url) {
|
||||
return this.evaluate(addScriptTag, url);
|
||||
|
||||
Reference in New Issue
Block a user