Skip to content

Commit

Permalink
temp -> temperature
Browse files Browse the repository at this point in the history
  • Loading branch information
ljagiello committed Oct 11, 2023
1 parent d353f93 commit 7bd2f91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions airgradient.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ func getAirGradientAPIURL(locationID int) string {
// convertTemperature converts the temperature from Celsius to Fahrenheit if the
// temperature unit is set to Fahrenheit
// By default the temperature unit is Celsius
func convertTemperature(temp float64, tempUnit string) float64 {
func convertTemperature(temperature float64, tempUnit string) float64 {
if tempUnit == "F" {
return (temp * 9 / 5) + 32
return (temperature * 9 / 5) + 32
}
return temp
return temperature
}

func fetchMeasures(airGradientAPIUrl string, token string) ([]byte, error) {
Expand Down

0 comments on commit 7bd2f91

Please sign in to comment.