Safe guard some functions
This commit is contained in:
parent
f4ae670848
commit
42d86a5a92
@ -62,6 +62,9 @@ class ClientCompat
|
|||||||
|
|
||||||
async DEL( key, handler )
|
async DEL( key, handler )
|
||||||
{
|
{
|
||||||
|
if( !handler )
|
||||||
|
throw new Error( "handler cannot be undefined" );
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
await this._connect();
|
await this._connect();
|
||||||
|
Loading…
Reference in New Issue
Block a user