Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kerwin612 committed Dec 5, 2024
1 parent 4334080 commit 3064594
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion routers/web/repo/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ func canReadFiles(r *context.Repository) bool {

// GetContents Get the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir
func GetContents(ctx *context.Context) {

if !canReadFiles(ctx.Repo) {
ctx.NotFound("Invalid FilePath", nil)
return
Expand Down

0 comments on commit 3064594

Please sign in to comment.