Compare commits

..

2 Commits

Author SHA1 Message Date
Derrick Hammer c5d761b3ae
*Update dist 2023-01-31 07:43:04 -05:00
Derrick Hammer fb471accce
*Use basic truthy check 2023-01-31 07:42:36 -05:00
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@ -37,7 +37,7 @@ export class Client {
}
}
export async function load(module) {
if (callModule !== null && connectModule !== null) {
if (callModule && connectModule) {
if (module) {
return {
callModule: callModule.bind(undefined, module),

View File

@ -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),