Skip to content

Commit

Permalink
Replaced var with types for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremybytes committed Sep 7, 2017
1 parent 8767e22 commit ed2efd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Program.cs
Expand Up @@ -16,11 +16,11 @@ static void Main(string[] args)
Console.WriteLine("One Moment Please (press 'x' to Cancel)");

var repository = new PersonRepository();
var peopleTask = repository.GetAsync(tokenSource.Token);
Task<List<Person>> peopleTask = repository.GetAsync(tokenSource.Token);

peopleTask.ContinueWith(task =>
{
var people = task.Result;
List<Person> people = task.Result;
foreach(var person in people)
Console.WriteLine(person.ToString());
Environment.Exit(0);
Expand Down

0 comments on commit ed2efd0

Please sign in to comment.