Skip to content

Commit cbd5be9

Browse files
committed
Allow renderTemplate to be called without any argument.
1 parent a7bc2ae commit cbd5be9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/actions/fs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ fs.existsDestination = function(filepath, ...args) {
149149
* @param {Object} [copyOptions] - mem-fs-editor copy options
150150
*/
151151
fs.renderTemplate = function(
152-
source,
152+
source = '',
153153
destination = source,
154154
templateData = this._templateData(),
155155
templateOptions,

0 commit comments

Comments
 (0)