Skip to content

Commit

Permalink
lxd/api: Fix linter issue
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Parrott <[email protected]>
  • Loading branch information
tomponline committed Oct 1, 2024
1 parent 1b5d5d1 commit ee57f3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lxd/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ func restServer(d *Daemon) *http.Server {
if strings.Contains(ua, "Gecko") {
http.Redirect(w, r, "/ui/", http.StatusMovedPermanently)
return
} else {
// Normal client handling.
_ = response.SyncResponse(true, []string{"/1.0"}).Render(w)
}

// Normal client handling.
_ = response.SyncResponse(true, []string{"/1.0"}).Render(w)
})

for endpoint, f := range d.gateway.HandlerFuncs(d.heartbeatHandler, d.identityCache) {
Expand Down

0 comments on commit ee57f3e

Please sign in to comment.