Commit b5b8ce6d by Adeel

Code: Improves outFile condition.

parent ca600f02
...@@ -35,7 +35,7 @@ function getOutFile(options) { ...@@ -35,7 +35,7 @@ function getOutFile(options) {
var file = options.file; var file = options.file;
var outFile = options.outFile; var outFile = options.outFile;
if (!file || !outFile || typeof outFile !== 'string' || typeof file !== 'string') { if (!outFile || typeof outFile !== 'string' || (!options.data && !file)) {
return null; return null;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment