Fix broken promise

This commit is contained in:
LordMathis 2019-02-16 21:56:37 +01:00
parent e265d0d16e
commit 6f2a2a5a9e
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import data from './data.json'
export function getData (path = '') {
if (path === '') {
return data
return Promise.resolve(data)
} else {
const fileName = '../../content/' + path
return readFile(fileName)