forked from forgejo/forgejo
Fix formating & remove commented out code
This commit is contained in:
parent
4c7cb0a5d2
commit
7e0014dd13
3 changed files with 5 additions and 36 deletions
|
@ -86,25 +86,6 @@ func ProcessorHelper() *markup.ProcessorHelper {
|
|||
}
|
||||
|
||||
return blob, nil
|
||||
|
||||
/*dataRc, err := blob.DataAsync()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer dataRc.Close()
|
||||
|
||||
buf, err := io.ReadAll(dataRc)
|
||||
if err != nil {
|
||||
log.Error("failed to completly read blob for %-v:%s. Error: %v", repo, filePath, err)
|
||||
}
|
||||
|
||||
fileContent, _, err := highlight.File(blob.Name(), language, buf)
|
||||
if err != nil {
|
||||
log.Error("highlight.File failed, fallback to plain text: %v", err)
|
||||
fileContent = highlight.PlainText(buf)
|
||||
}
|
||||
|
||||
return fileContent, nil*/
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue