mirror of https://github.com/go-gitea/gitea
Update services/markup/processorhelper_codepreview.go
This commit is contained in:
parent
79bebc2c90
commit
64e1ddaeac
|
@ -87,7 +87,6 @@ func renderRepoFileCodePreview(ctx context.Context, opts markup.RenderCodePrevie
|
|||
lineCodes := make([]string, 0, lineCount)
|
||||
for i := opts.LineStart; i <= opts.LineStop; i++ {
|
||||
line, err := reader.ReadString('\n')
|
||||
|
||||
if err != nil && line == "" {
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue