Skip to content

Commit

Permalink
Add missing nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
iain-macdonald committed Mar 11, 2024
1 parent fd02efa commit 853228c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion store/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,10 @@ func (m *idMap) add(ctx context.Context, p func(uint32) (releasable, error)) err
continue
}
e, ok := m.m[i]
releasable := e.releasable()
releaseable := false
if ok {
releasable = e.releasable()
}
if !ok || releasable {
if releasable {
log.G(ctx).Debugf("reusing ino %d because its releasable", i)
Expand Down

0 comments on commit 853228c

Please sign in to comment.