Skip to content

Commit

Permalink
Incorporate review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
kislaykishore committed Aug 30, 2024
1 parent 088d5ab commit 9182b37
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/fs/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1695,9 +1695,7 @@ func (fs *fileSystem) createLocalFile(
}
fs.mu.Unlock()
parent.Lock()
defer func() {
parent.Unlock()
}()
defer parent.Unlock()
parent.InsertFileIntoTypeCache(name)
// Even though there is no action here that requires locking, adding locking
// so that the defer call that unlocks the mutex doesn't fail.
Expand Down

0 comments on commit 9182b37

Please sign in to comment.