Function with cyclomatic complexity higher than threshold GO-R1005
Anti-pattern
Minor
1 occurrence in this check
func Adjust has a cyclomatic complexity of 33 with "very-high" risk
331}
332
333// Adjust adjusts the config.
334func (c *ScheduleConfig) Adjust(meta *configutil.ConfigMetaData, reloading bool) error {335	if !meta.IsDefined("max-snapshot-count") {
336		configutil.AdjustUint64(&c.MaxSnapshotCount, defaultMaxSnapshotCount)
337	}