Skip to content

Commit

Permalink
Prevent crash on migrate:make
Browse files Browse the repository at this point in the history
Fixes error introduced in 1d27fb8. `template` fails if passed a `null` second argument.

Fixes #1385
  • Loading branch information
rhys-vdw committed May 6, 2016
1 parent 40c80b3 commit 6bcceb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/migrate/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export default class Migrator {
_generateStubTemplate() {
var stubPath = this.config.stub || path.join(__dirname, 'stub', this.config.extension + '.stub');
return Promise.promisify(fs.readFile, {context: fs})(stubPath).then(function(stub) {
return template(stub.toString(), null, {variable: 'd'});
return template(stub.toString(), {variable: 'd'});
});
}

Expand Down

0 comments on commit 6bcceb4

Please sign in to comment.