mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 09:41:44 +08:00
staticcheck: ignore unused if platform dependent
This commit is contained in:
parent
1f9560e873
commit
9612ca6110
|
@ -20,7 +20,7 @@ var (
|
|||
pluginName = "rclone"
|
||||
pluginScope = "local"
|
||||
baseDir = "/var/lib/docker-volumes/rclone"
|
||||
sockDir = "/run/docker/plugins" // location of unix sockets (only relevant on Linux and FreeBSD)
|
||||
sockDir = "/run/docker/plugins" //lint:ignore U1000 unused when not building linux
|
||||
defSpecDir = "/etc/docker/plugins"
|
||||
stateFile = "docker-plugin.state"
|
||||
socketAddr = "" // TCP listening address or empty string for Unix socket
|
||||
|
|
|
@ -7,6 +7,7 @@ import (
|
|||
"os"
|
||||
)
|
||||
|
||||
//lint:ignore U1000 unused when not building linux
|
||||
func systemdActivationFiles() []*os.File {
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -184,7 +184,8 @@ func (s *server) serve() error {
|
|||
return s.srv.ListenAndServe()
|
||||
}
|
||||
|
||||
// serve runs the ftp server
|
||||
// close stops the ftp server
|
||||
//lint:ignore U1000 unused when not building linux
|
||||
func (s *server) close() error {
|
||||
fs.Logf(s.f, "Stopping FTP on %s", s.srv.Hostname+":"+strconv.Itoa(s.srv.Port))
|
||||
return s.srv.Shutdown()
|
||||
|
|
Loading…
Reference in New Issue
Block a user