Skip to content

Commit

Permalink
refactor: style fixes for tasks_quickstart (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
grant authored Sep 20, 2019
1 parent 7b2eb7b commit 0bb61de
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cloud-tasks/createTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,10 @@ async function createTask(
};
}

const request = {
parent: parent,
task: task,
};

console.log('Sending task:');
console.log(task);
// Send create task request.
const request = {parent, task};
const [response] = await client.createTask(request);
const name = response.name;
console.log(`Created task ${name}`);
Expand Down

0 comments on commit 0bb61de

Please sign in to comment.