From 29f03f35c4a2bdde4cf9a53503888c5b6dd0ac7a Mon Sep 17 00:00:00 2001 From: Rick Date: Thu, 15 Aug 2019 12:32:14 +0800 Subject: [PATCH] Add nest comment for a empty method --- client/pluginManger.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/pluginManger.go b/client/pluginManger.go index 80c3b59..469b5c0 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 } -- GitLab