Skip to content

Commit 4b9f801

Browse files
committed
minor change
1 parent 5a37b83 commit 4b9f801

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/amd-ctk/runtime/engine/docker/docker.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ func (d *dockerConfig) UnsetDefaultRuntime() error {
116116
// an error and a do not update flag in case daemon.json doesn't need
117117
// to be updated
118118
func (d *dockerConfig) RemoveRuntime(name string) (error, bool) {
119+
_ = os.RemoveAll(defaultCDISpecPath)
120+
119121
if d == nil {
120122
return fmt.Errorf("configuration is empty"), true
121123
}
@@ -139,8 +141,6 @@ func (d *dockerConfig) RemoveRuntime(name string) (error, bool) {
139141
delete(currentCfg, runtimesKey)
140142
}
141143
updated = true
142-
143-
_ = os.RemoveAll(defaultCDISpecPath)
144144
}
145145

146146
if updated {

0 commit comments

Comments
 (0)