Skip to content
Permalink
Browse files
eslint cleanup fix for: no-prototype-builtins
as needed for the upcoming (semi)standard eslint package updates

Co-authored-by: Raphael von der Grün <raphinesse@gmail.com>
Co-authored-by: Christopher J. Brody <chris@brody.consulting>
  • Loading branch information
Christopher J. Brody and raphinesse committed Jul 18, 2019
1 parent 83954d6 commit 15c86eb36a19fafedb0e17a4dcace8d549971a93
Showing 1 changed file with 3 additions and 5 deletions.
@@ -49,11 +49,9 @@ CordovaError.EXTERNAL_TOOL_ERROR = 1;
* @returns {string} Error code string name
*/
CordovaError.prototype.getErrorCodeName = function () {
for (var key in CordovaError) {
if (CordovaError.hasOwnProperty(key)) {
if (CordovaError[key] === this.code) {
return key;
}
for (const key of Object.keys(CordovaError)) {
if (CordovaError[key] === this.code) {
return key;
}
}
};

0 comments on commit 15c86eb

Please sign in to comment.