fix: guard
This commit is contained in:
parent
f474f34601
commit
7ae927d78a
|
@ -61,7 +61,7 @@ export default class Latus {
|
||||||
|
|
||||||
static create() {
|
static create() {
|
||||||
const path = join(root, 'latus.yml');
|
const path = join(root, 'latus.yml');
|
||||||
const config = yaml.safeLoad(fs.readFileSync(path, 'utf8'));
|
const config = yaml.safeLoad(fs.readFileSync(path, 'utf8')) || {};
|
||||||
const paths = flatten(
|
const paths = flatten(
|
||||||
Object.keys(config).map((path) => [
|
Object.keys(config).map((path) => [
|
||||||
this.runtimePath(path),
|
this.runtimePath(path),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user