Remove unused switch case

This commit is contained in:
Tyler Treat
2017-06-14 12:09:01 -05:00
parent 77a973fc8d
commit e4ccaa25bd

View File

@@ -255,14 +255,6 @@ func (s *Server) diffOptions(newOpts *Options) ([]option, error) {
if newValue == 0 {
// ignore RANDOM_PORT
continue
} else {
return nil, fmt.Errorf("Config reload not supported for %s: old=%v, new=%v",
field.Name, oldValue, newValue)
}
case "http_port", "https_port":
// check to see if newValue == -1 (RANDOM_PORT for http/https monitoring port)
if newValue == -1 {
continue
}
fallthrough
default: