Skip to content

Commit a2ed1fc

Browse files
committed
test
1 parent e8b810c commit a2ed1fc

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/wol.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,11 @@ async function startProcessing(req, res) {
199199
const woldEnabled =
200200
typeof ENV.woldURL === "string" && ENV.woldURL.trim() !== ""
201201

202-
const wolResult =
203-
wolEnabled && hosts.length > 0
204-
? await trySendWakeupPackets(hosts, ENV.wolURL)
205-
: null
202+
let wolResult = null
203+
204+
if (wolEnabled && hosts.length > 0) {
205+
wolResult = await trySendWakeupPackets(hosts, ENV.wolURL)
206+
}
206207

207208
logger.debug(JSON.stringify(wolResult))
208209

0 commit comments

Comments
 (0)