mirror of
https://github.com/onyx-and-iris/aoc2023.git
synced 2024-11-22 02:10:48 +00:00
label already r trimmed
This commit is contained in:
parent
e7635b5e4c
commit
7faa19e159
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user