label already r trimmed

This commit is contained in:
onyx-and-iris 2023-12-16 00:21:45 +00:00
parent e7635b5e4c
commit 7faa19e159

View File

@ -30,7 +30,7 @@ func two(lines []string) int {
if strings.Contains(lense, "=") { if strings.Contains(lense, "=") {
boxes[boxId].Set(label, focalLength) boxes[boxId].Set(label, focalLength)
} else { } else {
boxes[boxId].Delete(strings.TrimRight(label, "-")) boxes[boxId].Delete(label)
} }
} }