1
1
mirror of https://github.com/go-gitea/gitea synced 2024-06-02 01:15:48 +00:00

Update services/markup/processorhelper_codepreview.go

This commit is contained in:
silverwind 2024-04-20 02:14:22 +02:00 committed by GitHub
parent 79bebc2c90
commit 64e1ddaeac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}