Skip to content

Commit

Permalink
Apply suggested fix to remove unnecessary cast.
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky-apple authored Oct 27, 2023
1 parent de79f8b commit a4f033a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void AirQualitySensorManager::Init()

void AirQualitySensorManager::OnAirQualityChangeHandler(AirQualityEnum newValue)
{
mAirQualityInstance.UpdateAirQuality(static_cast<AirQualityEnum>(newValue));
mAirQualityInstance.UpdateAirQuality(newValue);
ChipLogDetail(NotSpecified, "Updated AirQuality value: %huu", chip::to_underlying(newValue));
}

Expand Down

0 comments on commit a4f033a

Please sign in to comment.