mirror of
https://github.com/go-gitea/gitea
synced 2025-07-16 07:18:37 +00:00
enable staticcheck QFxxxx rules (#34064)
This commit is contained in:
@@ -938,9 +938,10 @@ func ExcerptBlob(ctx *context.Context) {
|
||||
RightHunkSize: rightHunkSize,
|
||||
},
|
||||
}
|
||||
if direction == "up" {
|
||||
switch direction {
|
||||
case "up":
|
||||
section.Lines = append([]*gitdiff.DiffLine{lineSection}, section.Lines...)
|
||||
} else if direction == "down" {
|
||||
case "down":
|
||||
section.Lines = append(section.Lines, lineSection)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user