staticcheck: ignore unused if platform dependent

This commit is contained in:
albertony 2022-06-24 18:34:37 +02:00
parent 1f9560e873
commit 9612ca6110
3 changed files with 4 additions and 2 deletions

View file

@ -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