Skip to content

Commit

Permalink
Simpler benchmark files
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Aug 25, 2019
1 parent b602ddf commit 4a95315
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/stores/file/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ export const getBenchmarks = async function(dir) {
}

const content = await pReadFile(dataFile, 'utf-8')
const { benchmarks } = JSON.parse(content)
const benchmarks = JSON.parse(content)
return benchmarks
}

// Persist benchmarks from filesystem
export const setBenchmarks = async function(dir, benchmarks) {
const dataFile = await getDataFile(dir)
const content = JSON.stringify({ benchmarks }, null, 2)
const content = JSON.stringify(benchmarks, null, 2)
await writeFileAtomic(dataFile, `${content}\n`)
}

Expand Down

0 comments on commit 4a95315

Please sign in to comment.