Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois Mariette authored and Francois Mariette committed Dec 3, 2021
1 parent 73c664f commit 7236ada
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 8 additions & 2 deletions admiral/pkg/apis/admiral/routes/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ func (opts *RouteOpts) GetServiceEntriesByCluster(w http.ResponseWriter, r *http
} else {
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(200)
w.Write(out)
_, err := w.Write(out)
if err != nil {
log.Println("failed to write resp body: ", err)
}
}
}
}
Expand Down Expand Up @@ -140,7 +143,10 @@ func (opts *RouteOpts) GetServiceEntriesByIdentity(w http.ResponseWriter, r *htt
} else {
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(200)
w.Write(out)
_, err := w.Write(out)
if err != nil {
log.Println("failed to write resp body", err)
}
}
} else {
log.Printf("Identity not provided as part of the request")
Expand Down
1 change: 0 additions & 1 deletion admiral/pkg/apis/admiral/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ func waitForStop(s *Service) {
if err != nil {
log.Println("error stopping server: ", err)
}
return
}
}

Expand Down

0 comments on commit 7236ada

Please sign in to comment.