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
1 changed files with 0 additions and 1 deletions

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
}