Skip to content

Commit 672cdd0

Browse files
committed
fix golangci-lint error
1 parent 913b377 commit 672cdd0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

api/files.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func apiFilesListFiles(c *gin.Context) {
125125
listLock := &sync.Mutex{}
126126
root := filepath.Join(context.UploadPath(), c.Params.ByName("dir"))
127127

128-
err := walker.Walk(root, func(path string, info os.FileInfo) error {
128+
err := walker.Walk(root, func(path string, _ os.FileInfo) error {
129129
if path == root {
130130
return nil
131131
}

api/snapshot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func apiSnapshotsCreateFromRepository(c *gin.Context) {
196196
// including snapshot resource key
197197
resources := []string{string(repo.Key()), "S" + b.Name}
198198
taskName := fmt.Sprintf("Create snapshot of repo %s", name)
199-
maybeRunTaskInBackground(c, taskName, resources, func(out aptly.Progress, detail *task.Detail) (*task.ProcessReturnValue, error) {
199+
maybeRunTaskInBackground(c, taskName, resources, func(_ aptly.Progress, _ *task.Detail) (*task.ProcessReturnValue, error) {
200200
err := collection.LoadComplete(repo, collectionFactory.RefListCollection())
201201
if err != nil {
202202
return &task.ProcessReturnValue{Code: http.StatusInternalServerError, Value: nil}, err

0 commit comments

Comments
 (0)