MCPcopy
hub / github.com/apache/devlake / Close

Method Close

backend/plugins/tapd/impl/impl.go:315–322  ·  view source on GitHub ↗
(taskCtx plugin.TaskContext)

Source from the content-addressed store, hash-verified

313}
314
315func (p Tapd) Close(taskCtx plugin.TaskContext) errors.Error {
316 data, ok := taskCtx.GetData().(*tasks.TapdTaskData)
317 if !ok {
318 return errors.Default.New(fmt.Sprintf("GetData failed when try to close %+v", taskCtx))
319 }
320 data.ApiClient.Release()
321 return nil
322}

Callers

nothing calls this directly

Calls 3

GetDataMethod · 0.65
NewMethod · 0.65
ReleaseMethod · 0.65

Tested by

no test coverage detected