From 205cb5e21b960852a06fa28baaa03dbbd6aa835f Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 8 Aug 2024 19:59:40 +0900 Subject: feat(backend/worker): enable `stylecheck` in `golangci-lint` --- backend/taskqueue/processor.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'backend/taskqueue/processor.go') diff --git a/backend/taskqueue/processor.go b/backend/taskqueue/processor.go index b64b01c..cf90cbc 100644 --- a/backend/taskqueue/processor.go +++ b/backend/taskqueue/processor.go @@ -58,11 +58,11 @@ func (p *processor) doProcessTaskCompileSwiftToWasm( MaxDuration: 5000, Code: payload.Code(), } - reqJson, err := json.Marshal(reqData) + reqJSON, err := json.Marshal(reqData) if err != nil { return nil, fmt.Errorf("json.Marshal failed: %v", err) } - res, err := http.Post("http://worker:80/api/swiftc", "application/json", bytes.NewBuffer(reqJson)) + res, err := http.Post("http://worker:80/api/swiftc", "application/json", bytes.NewBuffer(reqJSON)) if err != nil { return nil, fmt.Errorf("http.Post failed: %v", err) } @@ -95,11 +95,11 @@ func (p *processor) doProcessTaskCompileWasmToNativeExecutable( MaxDuration: 5000, Code: payload.Code(), } - reqJson, err := json.Marshal(reqData) + reqJSON, err := json.Marshal(reqData) if err != nil { return nil, fmt.Errorf("json.Marshal failed: %v", err) } - res, err := http.Post("http://worker:80/api/wasmc", "application/json", bytes.NewBuffer(reqJson)) + res, err := http.Post("http://worker:80/api/wasmc", "application/json", bytes.NewBuffer(reqJSON)) if err != nil { return nil, fmt.Errorf("http.Post failed: %v", err) } @@ -134,11 +134,11 @@ func (p *processor) doProcessTaskRunTestcase( Code: payload.Code(), Stdin: payload.Stdin, } - reqJson, err := json.Marshal(reqData) + reqJSON, err := json.Marshal(reqData) if err != nil { return nil, fmt.Errorf("json.Marshal failed: %v", err) } - res, err := http.Post("http://worker:80/api/testrun", "application/json", bytes.NewBuffer(reqJson)) + res, err := http.Post("http://worker:80/api/testrun", "application/json", bytes.NewBuffer(reqJSON)) if err != nil { return nil, fmt.Errorf("http.Post failed: %v", err) } -- cgit v1.2.3-70-g09d2