mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Add gosimple linter (#9590)
This commit is contained in:
@@ -331,7 +331,7 @@ type HealthCheckIntervalResponse struct {
|
||||
func (h *HealthCheckResponse) AddDriverInfo(name string, driverInfo *structs.DriverInfo) {
|
||||
// initialize Drivers if it has not been already
|
||||
if h.Drivers == nil {
|
||||
h.Drivers = make(map[string]*structs.DriverInfo, 0)
|
||||
h.Drivers = make(map[string]*structs.DriverInfo)
|
||||
}
|
||||
|
||||
h.Drivers[name] = driverInfo
|
||||
|
||||
Reference in New Issue
Block a user