Skip to content

Commit

Permalink
EnsureRemoveAll: use IsEBUSY
Browse files Browse the repository at this point in the history
Most likely just a cosmetic change.

Signed-off-by: Valentin Rothberg <[email protected]>
  • Loading branch information
vrothberg committed Oct 13, 2022
1 parent 0a7dd54 commit 92a2cec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/system/rm.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package system
import (
"fmt"
"os"
"syscall"
"time"

"github.com/containers/storage/pkg/mount"
Expand Down Expand Up @@ -65,7 +64,7 @@ func EnsureRemoveAll(dir string) error {
continue
}

if pe.Err != syscall.EBUSY {
if !IsEBUSY(pe.Err) {
return err
}

Expand Down

0 comments on commit 92a2cec

Please sign in to comment.