From a58691aabd678ee4c4c192bd80af87d65281da58 Mon Sep 17 00:00:00 2001 From: "fryorcraken.eth" Date: Wed, 24 Aug 2022 19:04:31 +1000 Subject: [PATCH] refact: move default value to function signature --- src/test_utils/nwaku.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test_utils/nwaku.ts b/src/test_utils/nwaku.ts index e98044b4f8..2f70cce648 100644 --- a/src/test_utils/nwaku.ts +++ b/src/test_utils/nwaku.ts @@ -215,12 +215,12 @@ export class Nwaku { async sendMessage( message: WakuRelayMessage, - pubSubTopic?: string + pubSubTopic: string = DefaultPubSubTopic ): Promise { this.checkProcess(); return this.rpcCall("post_waku_v2_relay_v1_message", [ - pubSubTopic ? pubSubTopic : DefaultPubSubTopic, + pubSubTopic, message, ]); }