Skip to content

Commit

Permalink
fix(file): initialize writeFile options (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
rapropos authored and ihadeed committed Aug 22, 2016
1 parent 38ff6f2 commit 16628a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ export class File {
return Promise.reject(err);
}

let opts: WriteOptions;
let opts: WriteOptions = {};
if (replaceOrOptions) {
if (typeof(replaceOrOptions) === 'boolean') {
opts.replace = <boolean>replaceOrOptions;
Expand Down

0 comments on commit 16628a4

Please sign in to comment.