Skip to content

Commit

Permalink
lock fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ucwong committed Feb 11, 2023
1 parent ce2f7bc commit 5bd1814
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions item.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ func (itm *cacheItem) WasModified(fi os.FileInfo) bool {
}

func (itm *cacheItem) GetReader() (b io.Reader) {
itm.mutex.Lock()
defer itm.mutex.Unlock()
b = bytes.NewReader(itm.Access())
return
}
Expand Down

0 comments on commit 5bd1814

Please sign in to comment.