build: fix staticcheck lint errors with golangci-lint v1.60.1
This commit is contained in:
parent
9d5315a944
commit
1c80cbd13a
1 changed files with 0 additions and 4 deletions
|
@ -5,7 +5,6 @@ package mount
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"runtime"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"bazil.org/fuse"
|
"bazil.org/fuse"
|
||||||
|
@ -70,9 +69,6 @@ func mountOptions(VFS *vfs.VFS, device string, opt *mountlib.Options) (options [
|
||||||
// report an error when fusermount is called.
|
// report an error when fusermount is called.
|
||||||
func mount(VFS *vfs.VFS, mountpoint string, opt *mountlib.Options) (<-chan error, func() error, error) {
|
func mount(VFS *vfs.VFS, mountpoint string, opt *mountlib.Options) (<-chan error, func() error, error) {
|
||||||
f := VFS.Fs()
|
f := VFS.Fs()
|
||||||
if runtime.GOOS == "darwin" {
|
|
||||||
fs.Logf(nil, "macOS users: please try \"rclone cmount\" as it will be the default in v1.54")
|
|
||||||
}
|
|
||||||
if err := mountlib.CheckOverlap(f, mountpoint); err != nil {
|
if err := mountlib.CheckOverlap(f, mountpoint); err != nil {
|
||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue