Skip to content

Commit

Permalink
Merge pull request #44 from vb2ae/codeql_fixes
Browse files Browse the repository at this point in the history
last issue
  • Loading branch information
vb2ae committed Oct 9, 2023
2 parents dcb367d + b748b95 commit 1c12a68
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions OpenWeatherMap.Standard.Sample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,16 @@ private static async Task Main(string[] args)
}

var airPollution = await current.GetAirPollution(geolocations[0].lat, geolocations[0].lon);

if (airPollution != null)
{
Console.WriteLine(airPollution.list.First().main.AirQualityIndex);
}
else
{
Console.WriteLine("Error getting air pollution");
}

Console.ReadLine();
}
}
Expand Down

0 comments on commit 1c12a68

Please sign in to comment.