Commit d3d63b2
authored
Fix viewUpdateNSBG: re-declare lastBGTime local (#595)
Restore `let lastBGTime = entries[latestEntryIndex].date` in
viewUpdateNSBG. Dev currently fails to compile with
"Cannot find 'lastBGTime' in scope" because two PRs that merged
into dev on the same day textually did not conflict but semantically
interfered:
- #537 (Live Activity) added
`Storage.shared.lastBgReadingTimeSeconds.value = lastBGTime`
later in the function, relying on the existing local.
- #565 (Display HIGH/LOW) removed the local declaration as part
of an unrelated refactor; that branch was cut before #537 landed,
so from its perspective the local was unused.
Git's 3-way merge produced a syntactically clean file but the
surviving reference now dangles. Re-adding the local is the
minimal, intent-preserving fix.1 parent 9f00810 commit d3d63b2
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| 239 | + | |
239 | 240 | | |
240 | 241 | | |
241 | 242 | | |
| |||
0 commit comments