diff --git a/client/pluginManger.go b/client/pluginManger.go index 80c3b59b171fab8ac97e6b11c85d04c6157a8931..469b5c081da160653a1e00d2b6611e1ed13dfbaf 100644 --- a/client/pluginManger.go +++ b/client/pluginManger.go @@ -253,7 +253,9 @@ func (p *PluginManager) Upload(pluginFile string) { func (p *PluginManager) handleCheck(handle func(*http.Response)) func(*http.Response) { if handle == nil { - handle = func(*http.Response) {} + handle = func(*http.Response) { + // Do nothing, just for avoid nil exception + } } return handle }