Skip to content

Commit

Permalink
ci: fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kpetremann committed Oct 23, 2024
1 parent 51a6702 commit 961b136
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/api/router/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (m *Manager) getDeviceConfig(w http.ResponseWriter, r *http.Request) {
}

// getLastReport returns the last or current report.
func (m *Manager) getLastReport(w http.ResponseWriter, r *http.Request) {
func (m *Manager) getLastReport(w http.ResponseWriter, _ *http.Request) {
out, err := m.reports.GetLastJSON()
if err != nil {
log.Error().Err(err).Send()
Expand All @@ -155,7 +155,7 @@ func (m *Manager) getLastReport(w http.ResponseWriter, r *http.Request) {
}

// getLastCompleteReport returns the previous build report.
func (m *Manager) getLastCompleteReport(w http.ResponseWriter, r *http.Request) {
func (m *Manager) getLastCompleteReport(w http.ResponseWriter, _ *http.Request) {
out, err := m.reports.GetLastCompleteJSON()
if err != nil {
log.Error().Err(err).Send()
Expand All @@ -168,7 +168,7 @@ func (m *Manager) getLastCompleteReport(w http.ResponseWriter, r *http.Request)
}

// getLastSuccessfulReport returns the previous successful build report.
func (m *Manager) getLastSuccessfulReport(w http.ResponseWriter, r *http.Request) {
func (m *Manager) getLastSuccessfulReport(w http.ResponseWriter, _ *http.Request) {
out, err := m.reports.GetLastSuccessfulJSON()
if err != nil {
log.Error().Err(err).Send()
Expand All @@ -183,7 +183,7 @@ func (m *Manager) getLastSuccessfulReport(w http.ResponseWriter, r *http.Request
// triggerBuild enables the user to trigger a new build.
//
// It only accepts one build request at a time.
func (m *Manager) triggerBuild(w http.ResponseWriter, r *http.Request) {
func (m *Manager) triggerBuild(w http.ResponseWriter, _ *http.Request) {
w.Header().Set(contentType, applicationJSON)
select {
case m.newBuildRequest <- struct{}{}:
Expand Down

0 comments on commit 961b136

Please sign in to comment.