Rename some variables (#2393)

This commit is contained in:
bestgopher
2020-05-25 20:13:09 +08:00
committed by GitHub
parent 5f261fa752
commit c9b8535817
3 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ func (group *RouterGroup) createStaticHandler(relativePath string, fs http.FileS
fileServer := http.StripPrefix(absolutePath, http.FileServer(fs))
return func(c *Context) {
if _, nolisting := fs.(*onlyfilesFS); nolisting {
if _, noListing := fs.(*onlyFilesFS); noListing {
c.Writer.WriteHeader(http.StatusNotFound)
}