*Use basic truthy check
This commit is contained in:
parent
ae9c6eeb60
commit
fb471accce
|
@ -76,7 +76,7 @@ export abstract class Client {
|
|||
export async function load(
|
||||
module?: string
|
||||
): Promise<ModuleBag | ModuleBagBound> {
|
||||
if (callModule !== null && connectModule !== null) {
|
||||
if (callModule && connectModule) {
|
||||
if (module) {
|
||||
return {
|
||||
callModule: callModule.bind(undefined, module),
|
||||
|
|
Reference in New Issue