Skip to content
Snippets Groups Projects
Commit a9d74687 authored by Murat Kabilov's avatar Murat Kabilov Committed by Oleksii Kliukin
Browse files

fix golint warn

parent 1540a2ba
No related branches found
No related tags found
No related merge requests found
......@@ -135,13 +135,13 @@ func (m *MaintenanceWindow) MarshalJSON() ([]byte, error) {
return []byte(fmt.Sprintf("\"%s-%s\"",
m.StartTime.Format("15:04"),
m.EndTime.Format("15:04"))), nil
} else {
}
return []byte(fmt.Sprintf("\"%s:%s-%s\"",
m.Weekday.String()[:3],
m.StartTime.Format("15:04"),
m.EndTime.Format("15:04"))), nil
}
}
// UnmarshalJSON convets a JSON to the maintenance window definition.
func (m *MaintenanceWindow) UnmarshalJSON(data []byte) error {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment