From 16628a49f7ee1304b136db6796d10234c79a37d7 Mon Sep 17 00:00:00 2001 From: Robert Coie Date: Mon, 22 Aug 2016 15:18:53 -0700 Subject: [PATCH] fix(file): initialize writeFile options (#468) --- src/plugins/file.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/file.ts b/src/plugins/file.ts index b7cc3bda..d03d752d 100644 --- a/src/plugins/file.ts +++ b/src/plugins/file.ts @@ -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 = replaceOrOptions;