Skip to content

Commit

Permalink
Update storage-helper.js
Browse files Browse the repository at this point in the history
  • Loading branch information
pklaschka authored Oct 28, 2018
1 parent b75535c commit 654498d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class storageHelper {
throw new Error('Storage file storage.json was not a file.');
}

} catch {
} catch (e) {
const file = await dataFolder.createEntry('data.json', {type: storage.types.file, overwrite: true});
if (file.isFile) {
await file.write('{}', {append: false});
Expand Down

0 comments on commit 654498d

Please sign in to comment.