From dbdc9b36765bf968f25a2eaa7c403d6bcb92fd15 Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Fri, 20 Jun 2025 12:27:09 -0400 Subject: [PATCH] Fix toLowerCase usage --- createChannel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/createChannel.js b/createChannel.js index d65d408..4b5574a 100644 --- a/createChannel.js +++ b/createChannel.js @@ -22,7 +22,7 @@ async function run() { } r1.question('public or private? ', async function(status) { console.log('status', status, typeof status, status.toLowerCase()); - if (status.toLowerCase == 'public') { + if (status.toLowerCase() == 'public') { status = false; } else if (status.toLowerCase() == 'private') { status = true;