mirror of https://github.com/docker/docs.git
GetCryptoService is a helper function and we have injected a specific http.ResponseWriter object for it to write back error message. Meanwhile the caller for that function checks whether the cryptoService is nil or not and return immediately if it is nil. I think it's not a good idea to write back HTTP response in the helper function, it's the caller's work and thus there is no need to inject the specific ResponseWriter object into it. Signed-off-by: Hu Keping <hukeping@huawei.com> |
||
---|---|---|
.. | ||
api.go | ||
api_test.go | ||
find_key.go | ||
rpc_api.go | ||
rpc_api_test.go |