Skip to content

Commit

Permalink
fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
peczenyj committed Nov 5, 2023
1 parent 6c2401b commit f10b043
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,9 +487,9 @@ func (fs *FS) initRequestHandler() {
compressedFileSuffixes: compressedFileSuffixes,
}

h.cacheManager = newCacheManager(fs
if h.fs == nil {
h.cacheManager = newCacheManager(fs)

if h.fs == nil {
h.fs = &osFS{} // It provides os.Open and os.Stat
}

Expand Down

0 comments on commit f10b043

Please sign in to comment.