tenseleyflow/shithub / da62c4c

Browse files

api/actions_caches: gofumpt

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
da62c4c8d6ee8c31c82c0e4ed594f15e05667422
Parents
fedac0a
Tree
b3a9856

1 changed file

StatusFile+-
M internal/web/handlers/api/actions_caches.go 5 5
internal/web/handlers/api/actions_caches.gomodified
@@ -103,8 +103,8 @@ func (h *Handlers) actionsCachesList(w http.ResponseWriter, r *http.Request) {
103103
 		w.Header().Set("Link", link)
104104
 	}
105105
 	writeJSON(w, http.StatusOK, map[string]any{
106
-		"total_count":     total,
107
-		"actions_caches":  out,
106
+		"total_count":    total,
107
+		"actions_caches": out,
108108
 	})
109109
 }
110110
 
@@ -154,9 +154,9 @@ func (h *Handlers) actionsCachesDeleteByKey(w http.ResponseWriter, r *http.Reque
154154
 	}
155155
 	ref := pgTextOrNull(r.URL.Query().Get("ref"))
156156
 	objectKeys, err := actionsdb.New().DeleteWorkflowCachesByKey(r.Context(), h.d.Pool, actionsdb.DeleteWorkflowCachesByKeyParams{
157
-		RepoID:    repo.ID,
158
-		CacheKey:  key,
159
-		GitRef:    ref,
157
+		RepoID:   repo.ID,
158
+		CacheKey: key,
159
+		GitRef:   ref,
160160
 	})
161161
 	if err != nil {
162162
 		h.d.Logger.ErrorContext(r.Context(), "api: delete caches by key", "error", err)