mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-17 10:27:22 +00:00
fix golint complaints
This commit is contained in:
1 parent
1001ca92c8
commit
72a7780054
13 files changed
+26
-23
No files matched your search
+1
-1
@@ -147,7 +147,7 @@ func apiMirrorsDrop(c *gin.Context) {
|
||||
|
||||
resources := []string{string(repo.Key())}
|
||||
taskName := fmt.Sprintf("Delete mirror %s", name)
|
||||
maybeRunTaskInBackground(c, taskName, resources, func(out aptly.Progress, detail *task.Detail) (*task.ProcessReturnValue, error) {
|
||||
maybeRunTaskInBackground(c, taskName, resources, func(_ aptly.Progress, _ *task.Detail) (*task.ProcessReturnValue, error) {
|
||||
err := repo.CheckLock()
|
||||
if err != nil {
|
||||
return &task.ProcessReturnValue{Code: http.StatusInternalServerError, Value: nil}, fmt.Errorf("unable to drop: %v", err)
|
||||
|
||||
Reference in new issue
Block a user