Browse Source

Fixup unused vars/imports

master 20200920-1
KemoNine 1 year ago
parent
commit
f2292f3099
  1. 1
      cmd/fan/fan.go
  2. 2
      cmd/inotify/inotify.go

1
cmd/fan/fan.go

@ -34,7 +34,6 @@ func main() {
})
// 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)
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)

2
cmd/inotify/inotify.go

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

Loading…
Cancel
Save