fix: guard

This commit is contained in:
cha0s 2021-03-31 10:33:36 -05:00
parent f474f34601
commit 7ae927d78a

View File

@ -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),