-
-
Notifications
You must be signed in to change notification settings - Fork 193
ZH4.4.1 ZHC 23.72.1 #2536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZH4.4.1 ZHC 23.72.1 #2536
Conversation
src = path.normalize(this.adapter.expandFileName(path.join('img',path.basename(src)))); | ||
} // img/<filename> relative to data folder | ||
if (!fs.existsSync(src)) { | ||
this.warn(`Unable to copy icon from device definition, looked at ${locations.join(', ')} and ${src}`) |
Check notice
Code scanning / CodeQL
Semicolon insertion Note
the enclosing function
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 1 day ago
To fix the problem, an explicit semicolon should be added to the end of the this.warn
statement on line 156. This change will prevent the possibility of unintended behavior caused by automatic semicolon insertion and align the coding style with the rest of the function.
-
Copy modified line R156
@@ -153,7 +153,7 @@ | ||
src = path.normalize(this.adapter.expandFileName(path.join('img',path.basename(src)))); | ||
} // img/<filename> relative to data folder | ||
if (!fs.existsSync(src)) { | ||
this.warn(`Unable to copy icon from device definition, looked at ${locations.join(', ')} and ${src}`) | ||
this.warn(`Unable to copy icon from device definition, looked at ${locations.join(', ')} and ${src}`); | ||
return; | ||
} | ||
fs.readFile(src, (err, data) => { |
No description provided.