Skip to content

Commit

Permalink
lets get physical
Browse files Browse the repository at this point in the history
  • Loading branch information
edsu committed May 21, 2020
1 parent 8b99984 commit 09b6dd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,10 @@ app.on('ready', async () => {
})

// this is the number of ids that have already been hydrated
let idsAlreadyRead = arg.dataset.idsRead
const idsAlreadyRead = arg.dataset.idsRead

// if we've read ids already from the file we need to append
let outputMode = idsAlreadyRead > 0 ? 'a' : 'w'
const outputMode = idsAlreadyRead > 0 ? 'a' : 'w'

// set up the output stream for the json
console.log(`writing to ${arg.dataset.outputPath} for ${arg.dataset.id}`)
Expand Down

0 comments on commit 09b6dd0

Please sign in to comment.