chore: Enable eslint to enforce curly (#3060)
This commit is contained in:
@@ -30,8 +30,12 @@ try {
|
||||
|
||||
let index = 0;
|
||||
Object.values(manifestData).forEach((filename) => {
|
||||
if (typeof filename !== "string") return;
|
||||
if (!env.CDN_URL) return;
|
||||
if (typeof filename !== "string") {
|
||||
return;
|
||||
}
|
||||
if (!env.CDN_URL) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (filename.endsWith(".js")) {
|
||||
// Preload resources you have high-confidence will be used in the current
|
||||
|
||||
@@ -71,7 +71,9 @@ async function archiveToPath(zip: JSZip) {
|
||||
postfix: ".zip",
|
||||
},
|
||||
(err, path) => {
|
||||
if (err) return reject(err);
|
||||
if (err) {
|
||||
return reject(err);
|
||||
}
|
||||
zip
|
||||
.generateNodeStream({
|
||||
type: "nodebuffer",
|
||||
|
||||
Reference in New Issue
Block a user