diff --git a/pkg/spec/postgresql.go b/pkg/spec/postgresql.go index c73e104f95e4eb1d15e3c9253702a97252d7b211..172fe06f8178ea17a20fabb09f6cba109f7d467d 100644 --- a/pkg/spec/postgresql.go +++ b/pkg/spec/postgresql.go @@ -135,12 +135,12 @@ 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 } + + 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.