Fixup unused vars/imports
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
KemoNine 2020-09-20 20:36:57 -04:00
parent d335e1f85a
commit f2292f3099
2 changed files with 1 additions and 2 deletions

View file

@ -34,7 +34,6 @@ func main() {
}) })
// Get the various fan related config options as local variables // Get the various fan related config options as local variables
speedMap := pfConfig.Float64Map(config.CONFIG_KEY_FAN_SPEEDS)
POLL_INTERVAL := pfConfig.String(config.CONFIG_KEY_FAN_POLL_INTERVAL) POLL_INTERVAL := pfConfig.String(config.CONFIG_KEY_FAN_POLL_INTERVAL)
SPEED_FULL_TEMP := pfConfig.Float64(config.CONFIG_KEY_FAN_SPEEDS + "." + config.CONFIG_MAP_KEY_FAN_SPEED_100) SPEED_FULL_TEMP := pfConfig.Float64(config.CONFIG_KEY_FAN_SPEEDS + "." + config.CONFIG_MAP_KEY_FAN_SPEED_100)
SPEED_SEVENTY_FIVE_PERCENT_TEMP := pfConfig.Float64(config.CONFIG_KEY_FAN_SPEEDS + "." + config.CONFIG_MAP_KEY_FAN_SPEED_75) SPEED_SEVENTY_FIVE_PERCENT_TEMP := pfConfig.Float64(config.CONFIG_KEY_FAN_SPEEDS + "." + config.CONFIG_MAP_KEY_FAN_SPEED_75)

View file

@ -56,7 +56,7 @@ func main() {
go func() { go func() {
for { for {
select { select {
case event, ok := <-watcher.Events: case _, ok := <-watcher.Events:
if !ok { if !ok {
return return
} }