Simplify codebase per audit of 8b89f14
This commit is contained in:
@@ -78,15 +78,6 @@ func (s *Server) DeleteWorkflow(w http.ResponseWriter, r *http.Request, name str
|
||||
w.WriteHeader(http.StatusNoContent)
|
||||
}
|
||||
|
||||
func (s *Server) GetTaskWorkflow(w http.ResponseWriter, r *http.Request, taskID string) {
|
||||
tw, err := s.agents.TaskWorkflow(r.Context(), taskID)
|
||||
if err != nil {
|
||||
writeStoreError(w, err)
|
||||
return
|
||||
}
|
||||
writeJSON(w, http.StatusOK, tw)
|
||||
}
|
||||
|
||||
func (s *Server) GetWorkflowRun(w http.ResponseWriter, r *http.Request, taskID string) {
|
||||
run, err := s.agents.WorkflowRun(r.Context(), taskID)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user