Fixes some static analysis warnings and recommendations

* Useless conditional
* Superfluous trailing arguments
* Useless assignment to local variable
* Misspelled identifier
* JSDoc tag for non-existent parameter
This commit is contained in:
Yury Delendik 2016-05-02 17:34:58 -05:00
parent d20002b6b1
commit 32ce369d88
9 changed files with 32 additions and 43 deletions

View file

@ -1302,7 +1302,7 @@ function createPromiseCapability() {
/**
* Builds a promise that is resolved when all the passed in promises are
* resolved.
* @param {array} array of data and/or promises to wait for.
* @param {array} promises array of data and/or promises to wait for.
* @return {Promise} New dependant promise.
*/
Promise.all = function Promise_all(promises) {