未验证 提交 386c25bd 编写于 作者: LinuxSuRen's avatar LinuxSuRen 提交者: GitHub

Merge pull request #106 from LinuxSuRen/fix/empty-func

Add nest comment for a empty method
......@@ -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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册