Avoid calling Object.prototype methods directly on object instances
This commit is contained in:
+1
-1
@@ -34,7 +34,7 @@ module.exports = class NamedMapProviderCache {
|
||||
const namedMapProviders = this.providerCache.get(namedMapKey) || {};
|
||||
const providerKey = createProviderKey(config, authToken, params);
|
||||
|
||||
if (namedMapProviders.hasOwnProperty(providerKey)) {
|
||||
if (Object.prototype.hasOwnProperty.call(namedMapProviders, providerKey)) {
|
||||
return callback(null, namedMapProviders[providerKey]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user