Skip to content

Commit

Permalink
task (assets): adding comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tatang26 committed Feb 24, 2025
1 parent 837d4bd commit 0923a95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/fingerprint.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func (m *manager) PathFor(name string) (string, error) {
m.fmut.Lock()
defer m.fmut.Unlock()

// Delete previous asset hash from map
if old, exists := m.fileToHash[normalized]; exists && old != filename {
delete(m.HashToFile, old)
}
Expand Down

0 comments on commit 0923a95

Please sign in to comment.