go-graphite / carbonapi

append possibly assigns to a wrong variable CRT-D0001
Bug risk
Minor
1 occurrence in this check
append result not assigned to the same slice
117		dayName := timeutil.Strftime(&refDate, "%a")
118		dayName = strings.ToLower(dayName)
119		today := stringMatchesListIndex(dayName, weekdays)
120		twoWeeks := append(weekdays, weekdays...)121		dayOffset := today - stringMatchesListIndex(ref[:3], twoWeeks)
122		if dayOffset < 0 {
123			dayOffset += 7