Code2Gether-Discord / JokesOnYou

A learning project, A jokes website build as a team project.
12 stars 11 forks source link

Refactor: Change usages of returned Tasks to be awaited #116

Closed hartmannr76 closed 3 years ago

hartmannr76 commented 3 years ago

Reference discussion here.

Essentially, update all usages where Task's are returned without being awaited, to await them.

Example

public Task DoThing() => return Task.Delay(1);
// should be
public async Task DoThing() => await Task.Delay(1);

Additionally, if there is a way to enforce this in a lint step, that could be investigated.