Skip to content
Snippets Groups Projects
Commit cb15ad05 authored by xg.gao's avatar xg.gao
Browse files

code format

parent 7d9abd20
No related branches found
No related tags found
No related merge requests found
......@@ -363,14 +363,9 @@ func (z *ZookeeperClient) ZkConnValid() bool {
default:
}
valid := true
z.RLock()
if z.Conn == nil {
valid = false
}
z.RUnlock()
return valid
defer z.RUnlock()
return z.Conn != nil
}
// nolint
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment