Skip to content

Commit

Permalink
removed unneeded var
Browse files Browse the repository at this point in the history
  • Loading branch information
gmmorris committed Apr 22, 2020
1 parent cca699e commit e5257b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions x-pack/plugins/task_manager/server/task_store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,14 +323,13 @@ export class TaskStore {
version: doc.version,
});

const c = savedObjectToConcreteTaskInstance(
return savedObjectToConcreteTaskInstance(
// The SavedObjects update api forces a Partial on the `attributes` on the response,
// but actually returns the whole object that is passed to it, so as we know we're
// passing in the whole object, this is safe to do.
// This is far from ideal, but unless we change the SavedObjectsClient this is the best we can do
{ ...updatedSavedObject, attributes: defaults(updatedSavedObject.attributes, attributes) }
);
return c;
}

/**
Expand Down

0 comments on commit e5257b3

Please sign in to comment.