Skip to content

Commit

Permalink
Fix typo and rephrase
Browse files Browse the repository at this point in the history
  • Loading branch information
Linux123123 committed Dec 28, 2024
1 parent f7b330c commit f3fed4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/filesystem/compress.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ func (fs *Filesystem) archiverFileSystem(ctx context.Context, p string) (iofs.FS
// zip.Reader doesn't suffer from issue #330 and #310 according to local test (but they should be fixed anyway)
return zip.NewReader(f, info.Size())
case archives.Extraction:
// Returning pointer in neccessary, as only on pointer there is implementation of ReadDir method
// Returning a pointer is necessary, as the ReadDir method is only implemented for pointers
// and it is used for walking the archive fs.
return &archives.ArchiveFS{Stream: io.NewSectionReader(f, 0, info.Size()), Format: ff, Context: ctx}, nil
case archives.Compression:
return archiverext.FileFS{File: f, Compression: ff}, nil
Expand Down

0 comments on commit f3fed4b

Please sign in to comment.