From ccc449d68b695fcef8931cb73e65842be369a863 Mon Sep 17 00:00:00 2001 From: Alperen Elhan Date: Sun, 14 Apr 2019 02:45:29 +0300 Subject: [PATCH] refactor: no need to initialize windowList --- windowUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windowUtils.js b/windowUtils.js index 3054af1..b74d0d7 100644 --- a/windowUtils.js +++ b/windowUtils.js @@ -75,7 +75,7 @@ var windowExists = (pid, idInDec) => { `xdotool search --maxdepth=2 --pid ${pid}`, ); - let windowList = ByteArray.toString(stdout); + let windowList; if (stdout instanceof Uint8Array) { windowList = ByteArray.toString(stdout);