fix(inputs.temp): Ignore warnings, return errors (#13307)

This commit is contained in:
Joshua Powers 2023-05-22 14:11:05 -06:00 committed by GitHub
parent df166cfbcc
commit ef8484aab3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ func (s *SystemPS) Temperature() ([]host.TemperatureStat, error) {
temp, err := host.SensorsTemperatures()
if err != nil {
var hostWarnings *host.Warnings
if errors.As(err, &hostWarnings) {
if !errors.As(err, &hostWarnings) {
return temp, err
}
}