mirror of
https://github.com/docker/docs.git
synced 2026-03-31 00:08:55 +07:00
Merge pull request #17894 from mqliang/deferMove
move defer statement for readability
This commit is contained in:
@@ -136,8 +136,8 @@ func (m *containerMonitor) Start() error {
|
||||
defer func() {
|
||||
if afterRun {
|
||||
m.container.Lock()
|
||||
m.container.setStopped(&exitStatus)
|
||||
defer m.container.Unlock()
|
||||
m.container.setStopped(&exitStatus)
|
||||
}
|
||||
m.Close()
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user