Fix syntax error (oops)
This commit is contained in:
parent
541367fcc4
commit
50c0f7db21
@ -70,7 +70,7 @@ func (c *Client) Open(user, path string) (fs.File, error) {
|
||||
|
||||
// If it's a dir, give them index.html
|
||||
if strings.HasSuffix(filepath, "/") {
|
||||
*filepath += "index.html"
|
||||
filepath += "index.html"
|
||||
}
|
||||
|
||||
allowed := c.allowsPages(user, repo)
|
||||
|
Loading…
Reference in New Issue
Block a user