Fix syntax error (oops)

This commit is contained in:
James Mills 2023-08-20 01:21:38 +10:00
parent 541367fcc4
commit 50c0f7db21
No known key found for this signature in database
GPG Key ID: AC4C014F1440EBD6

View File

@ -70,7 +70,7 @@ func (c *Client) Open(user, path string) (fs.File, error) {
// If it's a dir, give them index.html // If it's a dir, give them index.html
if strings.HasSuffix(filepath, "/") { if strings.HasSuffix(filepath, "/") {
*filepath += "index.html" filepath += "index.html"
} }
allowed := c.allowsPages(user, repo) allowed := c.allowsPages(user, repo)