From 0bb61de1f9ab5d2bd011e343497c23f7f34bd64a Mon Sep 17 00:00:00 2001 From: Grant Timmerman Date: Fri, 20 Sep 2019 18:32:28 -0300 Subject: [PATCH] refactor: style fixes for tasks_quickstart (#281) --- cloud-tasks/createTask.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cloud-tasks/createTask.js b/cloud-tasks/createTask.js index 8c25116741..935d08b5b6 100644 --- a/cloud-tasks/createTask.js +++ b/cloud-tasks/createTask.js @@ -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}`);