staticcheck: ignore unused if platform dependent
This commit is contained in:
parent
1f9560e873
commit
9612ca6110
3 changed files with 4 additions and 2 deletions
|
@ -20,7 +20,7 @@ var (
|
||||||
pluginName = "rclone"
|
pluginName = "rclone"
|
||||||
pluginScope = "local"
|
pluginScope = "local"
|
||||||
baseDir = "/var/lib/docker-volumes/rclone"
|
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"
|
defSpecDir = "/etc/docker/plugins"
|
||||||
stateFile = "docker-plugin.state"
|
stateFile = "docker-plugin.state"
|
||||||
socketAddr = "" // TCP listening address or empty string for Unix socket
|
socketAddr = "" // TCP listening address or empty string for Unix socket
|
||||||
|
|
|
@ -7,6 +7,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//lint:ignore U1000 unused when not building linux
|
||||||
func systemdActivationFiles() []*os.File {
|
func systemdActivationFiles() []*os.File {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -184,7 +184,8 @@ func (s *server) serve() error {
|
||||||
return s.srv.ListenAndServe()
|
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 {
|
func (s *server) close() error {
|
||||||
fs.Logf(s.f, "Stopping FTP on %s", s.srv.Hostname+":"+strconv.Itoa(s.srv.Port))
|
fs.Logf(s.f, "Stopping FTP on %s", s.srv.Hostname+":"+strconv.Itoa(s.srv.Port))
|
||||||
return s.srv.Shutdown()
|
return s.srv.Shutdown()
|
||||||
|
|
Loading…
Reference in a new issue