mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-08 05:50:47 +00:00
fix golangci-lint error
This commit is contained in:
+1
-1
@@ -170,7 +170,7 @@ func apiFilesListFiles(c *gin.Context) {
|
||||
listLock := &sync.Mutex{}
|
||||
root := filepath.Join(context.UploadPath(), utils.SanitizePath(c.Params.ByName("dir")))
|
||||
|
||||
err := walker.Walk(root, func(path string, info os.FileInfo) error {
|
||||
err := walker.Walk(root, func(path string, _ os.FileInfo) error {
|
||||
if path == root {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user