mirror of
https://github.com/gogs/gogs.git
synced 2025-12-22 16:20:14 +01:00
Minor fix for PR #3687
This commit is contained in:
@@ -188,8 +188,7 @@ func editFilePost(ctx *context.Context, form auth.EditRepoFileForm, isNewFile bo
|
||||
ctx.Data["Err_TreePath"] = true
|
||||
ctx.RenderWithErr(ctx.Tr("repo.editor.file_is_a_symlink", part), EDIT_FILE, &form)
|
||||
return
|
||||
}
|
||||
if entry.IsDir() {
|
||||
} else if entry.IsDir() {
|
||||
ctx.Data["Err_TreePath"] = true
|
||||
ctx.RenderWithErr(ctx.Tr("repo.editor.filename_is_a_directory", part), EDIT_FILE, &form)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user