chore: code formatting
This commit is contained in:
@@ -41,7 +41,7 @@ export default async function metadata({log = true, diff = false} = {}) {
|
||||
if (!(await fs.promises.lstat(path.join(__plugins, name))).isDirectory())
|
||||
continue
|
||||
switch (name) {
|
||||
case "community":{
|
||||
case "community": {
|
||||
const ___plugins = path.join(__plugins, "community")
|
||||
for (const name of await fs.promises.readdir(___plugins)) {
|
||||
if (!(await fs.promises.lstat(path.join(___plugins, name))).isDirectory())
|
||||
|
||||
@@ -164,7 +164,7 @@ export default async function({log = true, nosettings = false, community = {}} =
|
||||
//Load plugins
|
||||
for (const name of await fs.promises.readdir(__plugins)) {
|
||||
switch (name) {
|
||||
case "community":{
|
||||
case "community": {
|
||||
const ___plugins = path.join(__plugins, "community")
|
||||
for (const name of await fs.promises.readdir(___plugins))
|
||||
await load.plugin(name, {__plugins:___plugins, Plugins, conf, logger})
|
||||
@@ -249,5 +249,5 @@ const load = {
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user