Adds Formatting to the CI (#69)
This MR adds linting and formatting to the CI pipeline for the repository for both the Golang and Lua code.
This commit is contained in:
committed by
GitHub
parent
3a67424fec
commit
a055c4c988
@@ -40,6 +40,9 @@ func JobHandler(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
reader, _, err := c.git.Jobs.GetTraceFile(c.projectId, jobTraceRequest.JobId)
|
||||
if err != nil {
|
||||
c.handleError(w, err, "Could not get trace file for job", http.StatusBadRequest)
|
||||
}
|
||||
|
||||
file, err := io.ReadAll(reader)
|
||||
|
||||
@@ -55,5 +58,8 @@ func JobHandler(w http.ResponseWriter, r *http.Request) {
|
||||
File: string(file),
|
||||
}
|
||||
|
||||
json.NewEncoder(w).Encode(response)
|
||||
err = json.NewEncoder(w).Encode(response)
|
||||
if err != nil {
|
||||
c.handleError(w, err, "Could not encode response", http.StatusInternalServerError)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user