mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #17894 from mqliang/deferMove
move defer statement for readability
This commit is contained in:
commit
6c82fba2b3
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
}()
|
||||
|
|
Loading…
Add table
Reference in a new issue