From f569df6eade1373dee7116ceac977636bdfc8edc Mon Sep 17 00:00:00 2001 From: tjpcc Date: Wed, 18 Jan 2023 22:10:29 -0700 Subject: bugfix and some docs cleanup --- contrib/fs/dir.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/fs/dir.go') diff --git a/contrib/fs/dir.go b/contrib/fs/dir.go index 6292f67..4328c8f 100644 --- a/contrib/fs/dir.go +++ b/contrib/fs/dir.go @@ -75,7 +75,7 @@ func DirectoryDefault(fileSystem fs.FS, fileNames ...string) gus.Handler { func DirectoryListing(fileSystem fs.FS, template *template.Template) gus.Handler { return func(ctx context.Context, req *gus.Request) *gus.Response { path, dirFile, resp := handleDir(req, fileSystem) - if resp != nil { + if dirFile == nil { return resp } defer dirFile.Close() -- cgit v1.2.3