Go fmt cleanup

This commit is contained in:
Paul Banks 2018-05-11 17:02:00 +01:00
parent 78d54a4be9
commit d35988521e
No known key found for this signature in database
GPG Key ID: C25A851A849B8221
2 changed files with 6 additions and 7 deletions

View File

@ -152,7 +152,7 @@ func (s *HTTPServer) handler(enableDebug bool) http.Handler {
if err != nil {
new_ui = false
}
var uifs http.FileSystem;
var uifs http.FileSystem
// Use the custom UI dir if provided.
if s.agent.config.UIDir != "" {
@ -169,7 +169,7 @@ func (s *HTTPServer) handler(enableDebug bool) http.Handler {
}
if new_ui {
uifs = &redirectFS{fs:uifs}
uifs = &redirectFS{fs: uifs}
}
mux.Handle("/ui/", http.StripPrefix("/ui/", http.FileServer(uifs)))

View File

@ -23,6 +23,5 @@ func SerfDefaultConfig() *serf.Config {
// (using https://www.serf.io/docs/internals/simulator.html).
base.LeavePropagateDelay = 3 * time.Second
return base
}