mirror of
https://github.com/rclone/rclone.git
synced 2024-11-24 14:12:00 +08:00
build: fix staticcheck lint errors with golangci-lint v1.60.1
This commit is contained in:
parent
9d5315a944
commit
1c80cbd13a
|
@ -5,7 +5,6 @@ package mount
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"runtime"
|
||||
"time"
|
||||
|
||||
"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.
|
||||
func mount(VFS *vfs.VFS, mountpoint string, opt *mountlib.Options) (<-chan error, func() error, error) {
|
||||
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 {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user