You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-17 19:41:06 +03:00
fix some code analyzers (LGTM, deepsource, codeclimate) issues
This commit is contained in:
@@ -59,15 +59,15 @@ export default class RedisSocket extends EventEmitter {
|
||||
}
|
||||
|
||||
static #isUrlSocket(options: RedisSocketOptions): options is RedisUrlSocketOptions {
|
||||
return options.hasOwnProperty('url');
|
||||
return Object.prototype.hasOwnProperty.call(options, 'url');
|
||||
}
|
||||
|
||||
static #isUnixSocket(options: RedisSocketOptions): options is RedisUnixSocketOptions {
|
||||
return options.hasOwnProperty('path');
|
||||
return Object.prototype.hasOwnProperty.call(options, 'path');
|
||||
}
|
||||
|
||||
static #isTlsSocket(options: RedisSocketOptions): options is RedisTlsSocketOptions {
|
||||
return options.hasOwnProperty('tls');
|
||||
return Object.prototype.hasOwnProperty.call(options, 'tls');
|
||||
}
|
||||
|
||||
readonly #initiator?: RedisSocketInitiator;
|
||||
|
Reference in New Issue
Block a user