Skip to main content

The output of count_tabs should go to stdout, not stderr

ID
b274d4d
date
2024-04-13 04:46:07+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
748362f
message
The output of `count_tabs` should go to stdout, not stderr
changed files
1 file, 2 additions, 2 deletions

Changed files

macos/count_tabs (432) → macos/count_tabs (408)

diff --git a/macos/count_tabs b/macos/count_tabs
index 86ac384..b172e55 100755
--- a/macos/count_tabs
+++ b/macos/count_tabs
@@ -12,7 +12,7 @@ for (index = 0; index < safari.windows.length; index++) {
 }
 
 if (totalTabs === 1) {
-  console.log('There is 1 tab open.')
+  'There is 1 tab open.';
 } else {
-  console.log(`There are ${totalTabs} tabs open.`)
+  `There are ${totalTabs} tabs open.`;
 }