chore: use more standard golangci-lint options

This commit is contained in:
Henrique Dias
2025-11-14 16:18:12 +01:00
parent 0d973d3aad
commit 9d44932dba
8 changed files with 15 additions and 138 deletions

View File

@@ -98,8 +98,8 @@ var publicShareHandler = withHashFile(func(w http.ResponseWriter, r *http.Reques
file := d.raw.(*files.FileInfo)
if file.IsDir {
file.Listing.Sorting = files.Sorting{By: "name", Asc: false}
file.Listing.ApplySort()
file.Sorting = files.Sorting{By: "name", Asc: false}
file.ApplySort()
return renderJSON(w, r, file)
}