Don't run help generator if it isn't loaded
This commit is contained in:
parent
55a150c0c9
commit
f80d6ad31f
1 changed files with 6 additions and 4 deletions
10
shard.js
10
shard.js
|
@ -63,10 +63,12 @@ class Shard extends Base {
|
|||
}
|
||||
|
||||
// generate docs
|
||||
await helpGenerator.generateList();
|
||||
if (this.clusterID === 0 && helpGenerator) {
|
||||
await helpGenerator.createPage(process.env.OUTPUT);
|
||||
logger.log("info", "The help docs have been generated.");
|
||||
if (helpGenerator) {
|
||||
await helpGenerator.generateList();
|
||||
if (this.clusterID === 0 && helpGenerator) {
|
||||
await helpGenerator.createPage(process.env.OUTPUT);
|
||||
logger.log("info", "The help docs have been generated.");
|
||||
}
|
||||
}
|
||||
|
||||
if (process.env.METRICS !== "" && process.env.METRICS !== undefined) {
|
||||
|
|
Loading…
Reference in a new issue