1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-24 20:14:31 +02:00

improve comments

This commit is contained in:
toimtoimtoim 2022-01-15 11:26:04 +02:00 committed by Martti T
parent db5bace1c4
commit feaa6ede6a

View File

@ -33,7 +33,7 @@ func fsFile(c Context, file string, filesystem fs.FS) error {
fi, _ := f.Stat() fi, _ := f.Stat()
if fi.IsDir() { if fi.IsDir() {
file = filepath.ToSlash(filepath.Join(file, indexPage)) // ToSlash is necessary for Windows file = filepath.ToSlash(filepath.Join(file, indexPage)) // ToSlash is necessary for Windows. fs.Open and os.Open are different in that aspect.
f, err = filesystem.Open(file) f, err = filesystem.Open(file)
if err != nil { if err != nil {
return ErrNotFound return ErrNotFound