Commit f3a50579 authored by Pontus Leitzler's avatar Pontus Leitzler

Fix SA2003, deferred Lock right after locking

parent 28d273c8
......@@ -121,7 +121,7 @@ func (r *ServiceRegistry) WatchServices(ctx api.Context, options *api.ListOption
func (r *ServiceRegistry) ExportService(ctx api.Context, name string, options unversioned.ExportOptions) (*api.Service, error) {
r.mu.Lock()
defer r.mu.Lock()
defer r.mu.Unlock()
return r.Service, r.Err
}
Markdown is supported
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