We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8b810c commit a2ed1fcCopy full SHA for a2ed1fc
1 file changed
src/wol.js
@@ -199,10 +199,11 @@ async function startProcessing(req, res) {
199
const woldEnabled =
200
typeof ENV.woldURL === "string" && ENV.woldURL.trim() !== ""
201
202
- const wolResult =
203
- wolEnabled && hosts.length > 0
204
- ? await trySendWakeupPackets(hosts, ENV.wolURL)
205
- : null
+ let wolResult = null
+
+ if (wolEnabled && hosts.length > 0) {
+ wolResult = await trySendWakeupPackets(hosts, ENV.wolURL)
206
+ }
207
208
logger.debug(JSON.stringify(wolResult))
209
0 commit comments