Browse Source

Fix a linting problem

master
Noah Pederson 2 years ago
parent
commit
02fe5ab6a4
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      pkg/listener/web.go

+ 5
- 5
pkg/listener/web.go View File

@ -26,12 +26,12 @@ func (s *Service) HandleFitbitNotification(w http.ResponseWriter, r *http.Reques
w.WriteHeader(http.StatusNoContent)
w.Write([]byte("Valid"))
return
} else {
log.Println("Verifying bad!")
w.WriteHeader(http.StatusNotFound)
w.Write([]byte("Invalid"))
return
}
log.Println("Verifying bad!")
w.WriteHeader(http.StatusNotFound)
w.Write([]byte("Invalid"))
return
}
decoder := json.NewDecoder(r.Body)
defer r.Body.Close()


Loading…
Cancel
Save