Skip to content

Commit

Permalink
fix float references in DI
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-the-programmer committed Jan 7, 2024
1 parent d39d448 commit 7b6080c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Satellite.API/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
var cache = o.GetService<IMemoryCache>();
var lon = Environment.GetEnvironmentVariable("CURRENT_LONGITUDE");
var lat = Environment.GetEnvironmentVariable("CURRENT_LATITUDE");
return new SatelliteService(client, cache, new Satellite.Models.CurrentCoords { Longitude = Convert.ToDouble(lon), Latitude = Convert.ToDouble(lat) });
return new SatelliteService(client, cache, new Satellite.Models.CurrentCoords { Longitude = float.Parse(lon), Latitude = float.Parse(lat) });
});
#pragma warning restore CS8604 // Possible null reference argument.

Expand Down

0 comments on commit 7b6080c

Please sign in to comment.