Skip to content

Commit

Permalink
squashme: apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ralf Grubenmann <[email protected]>
  • Loading branch information
olevski and Panaetius authored Nov 11, 2024
1 parent b9cb81b commit 017c31c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/rclone/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,13 @@ func (d *Driver) Stop() error {
return err
}

func unmountExiting() {
func unmountExisting() {
klog.Info("Checking for existing rclone mounts to unmount")
// NOTE: A blank mounter path means use the default of /bin/mount
mounter := mountUtils.New("")
mounts, err := mounter.List()
if err != nil {
klog.Warningf("Could not list mounts when trying to unmount exising mounts: %v", err)
klog.Warningf("Could not list mounts when trying to unmount existing mounts: %v", err)
return
}
for _, mount := range mounts {
Expand Down

0 comments on commit 017c31c

Please sign in to comment.