Skip to content

Commit

Permalink
ESLint error
Browse files Browse the repository at this point in the history
  • Loading branch information
chronoDave committed May 5, 2019
1 parent e534975 commit ebe0ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/actions/populateDatabase.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = function populateDatabase(Database, rootFolder, sender) {
: 'jpeg';
const imagePath = process.platform === 'win32'
? `${imageDir}\\${album.replace(/\/|\\|\?|%|\*|:|\||"|<|>|\./g, '')}.${imageFormat}`
: `${imageDir}/${album.replace(/\/|\\|\?|%|\*|:|\||"|<|>|\./g, '')}.${imageFormat}`
: `${imageDir}/${album.replace(/\/|\\|\?|%|\*|:|\||"|<|>|\./g, '')}.${imageFormat}`;

// Save file to disk
fs.writeFileSync(imagePath, metadata.common.picture[0].data, 'base64');
Expand Down

0 comments on commit ebe0ae1

Please sign in to comment.