style(updater): use template literal for URL concatenation

This commit is contained in:
oomeow
2026-06-09 17:31:16 +08:00
parent 97bd5a1f1f
commit 8754bfb35f
+1 -1
View File
@@ -283,7 +283,7 @@ async function processRelease(github, options, tag, isAlpha) {
Object.entries(updateDataNew.platforms).forEach(([key, value]) => {
if (value.url) {
updateDataNew.platforms[key].url =
'https://update.hwdns.net/' + value.url
`https://update.hwdns.net/${value.url}`
} else {
console.log(`[Error]: updateDataNew.platforms.${key} is null`)
}