Skip to content

Commit

Permalink
Replace this with grunt.task.current in changelog task (#739)
Browse files Browse the repository at this point in the history
Arrow function isn't binding the context correctly here and caused the
task to fail. Keeping the nice arrow syntax we can use the current task
from the grunt object to get the `async` function.

Fix #738
  • Loading branch information
wyze authored and rwaldron committed May 13, 2016
1 parent 03f167c commit 7c5b07b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ module.exports = (grunt) => {


grunt.registerTask('changelog', '`changelog:0.0.0--0.0.2` or `changelog`', (range) => {
var done = this.async();
var done = grunt.task.current.async();

if (!range) {
// grunt changelog
Expand Down

0 comments on commit 7c5b07b

Please sign in to comment.