Skip to content

Commit b49d0d2

Browse files
committed
Linting
1 parent 076c5bc commit b49d0d2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

internal/http/services/appprovider/appprovider.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ func (s *svc) handleNew(w http.ResponseWriter, r *http.Request) {
142142
_, ocmderr, err := statRef(ctx, provider.Reference{Path: r.URL.Query().Get("container")}, client)
143143
if err != nil {
144144
log.Error().Err(err).Msg("error statting container")
145-
ocmd.WriteError(w, r, ocmderr, "Container not found",
146-
errtypes.NotFound("Container not found"))
145+
ocmd.WriteError(w, r, ocmderr, "Container not found", errtypes.NotFound("Container not found"))
147146
return
148147
}
149148
// Create empty file via storageprovider: obtain the HTTP URL for a PUT
@@ -201,8 +200,7 @@ func (s *svc) handleNew(w http.ResponseWriter, r *http.Request) {
201200
statRes, ocmderr, err := statRef(ctx, provider.Reference{Path: target}, client)
202201
if err != nil {
203202
log.Error().Err(err).Msg("error statting created file")
204-
ocmd.WriteError(w, r, ocmderr, "Created file not found",
205-
errtypes.NotFound("Created file not found"))
203+
ocmd.WriteError(w, r, ocmderr, "Created file not found", errtypes.NotFound("Created file not found"))
206204
return
207205
}
208206
js, err := json.Marshal(map[string]interface{}{"file_id": statRes.Id})
@@ -232,7 +230,8 @@ func (s *svc) handleList(w http.ResponseWriter, r *http.Request) {
232230
return
233231
}
234232
if listRes.Status.Code != rpc.Code_CODE_OK {
235-
ocmd.WriteError(w, r, ocmd.APIErrorServerError, "error listing supported mime types", status.NewErrorFromCode(listRes.Status.Code, "appprovider"))
233+
ocmd.WriteError(w, r, ocmd.APIErrorServerError, "error listing supported mime types",
234+
status.NewErrorFromCode(listRes.Status.Code, "appprovider"))
236235
return
237236
}
238237

@@ -276,7 +275,8 @@ func (s *svc) handleOpen(w http.ResponseWriter, r *http.Request) {
276275
return
277276
}
278277
if openRes.Status.Code != rpc.Code_CODE_OK {
279-
ocmd.WriteError(w, r, ocmd.APIErrorServerError, "error opening resource information", status.NewErrorFromCode(openRes.Status.Code, "appprovider"))
278+
ocmd.WriteError(w, r, ocmd.APIErrorServerError, "error opening resource information",
279+
status.NewErrorFromCode(openRes.Status.Code, "appprovider"))
280280
return
281281
}
282282

0 commit comments

Comments
 (0)