fix: await file check promises
This commit is contained in:
4
dist/index.js
vendored
4
dist/index.js
vendored
@@ -87625,7 +87625,7 @@ class CustomService extends Service {
|
|||||||
`- Function: ${funcFiles.length}`);
|
`- Function: ${funcFiles.length}`);
|
||||||
let success = true;
|
let success = true;
|
||||||
for (const jsonFile of jsonFiles) {
|
for (const jsonFile of jsonFiles) {
|
||||||
if (!this.checkFile(jsonFile, "json")) {
|
if (!(await this.checkFile(jsonFile, "json"))) {
|
||||||
success = false;
|
success = false;
|
||||||
if (!this.options.reportAllErrors) {
|
if (!this.options.reportAllErrors) {
|
||||||
return false;
|
return false;
|
||||||
@@ -87633,7 +87633,7 @@ class CustomService extends Service {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (const funcFile of funcFiles) {
|
for (const funcFile of funcFiles) {
|
||||||
if (!this.checkFile(funcFile, "mcfunction")) {
|
if (!(await this.checkFile(funcFile, "mcfunction"))) {
|
||||||
success = false;
|
success = false;
|
||||||
if (!this.options.reportAllErrors) {
|
if (!this.options.reportAllErrors) {
|
||||||
return false;
|
return false;
|
||||||
|
@@ -166,7 +166,7 @@ export class CustomService extends core.Service {
|
|||||||
)
|
)
|
||||||
let success = true
|
let success = true
|
||||||
for (const jsonFile of jsonFiles) {
|
for (const jsonFile of jsonFiles) {
|
||||||
if (!this.checkFile(jsonFile, "json")) {
|
if (!(await this.checkFile(jsonFile, "json"))) {
|
||||||
success = false
|
success = false
|
||||||
if (!this.options.reportAllErrors) {
|
if (!this.options.reportAllErrors) {
|
||||||
return false
|
return false
|
||||||
@@ -174,7 +174,7 @@ export class CustomService extends core.Service {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (const funcFile of funcFiles) {
|
for (const funcFile of funcFiles) {
|
||||||
if (!this.checkFile(funcFile, "mcfunction")) {
|
if (!(await this.checkFile(funcFile, "mcfunction"))) {
|
||||||
success = false
|
success = false
|
||||||
if (!this.options.reportAllErrors) {
|
if (!this.options.reportAllErrors) {
|
||||||
return false
|
return false
|
||||||
|
Reference in New Issue
Block a user