enable revive linter

This commit is contained in:
2026-02-15 16:02:07 +00:00
parent d18834b290
commit f6ea67b88c
3 changed files with 13 additions and 5 deletions

View File

@@ -1,3 +1,4 @@
// Package main implements a command-line application for a Quake 3 RCON proxy server.
package main
import (
@@ -44,7 +45,7 @@ func main() {
Usage: "Proxy and target ports (proxy:target)",
Sources: cli.EnvVars("Q3RCON_PORTS_MAPPING"),
Required: true,
Action: func(ctx context.Context, cmd *cli.Command, v string) error {
Action: func(_ context.Context, _ *cli.Command, v string) error {
// Validate the ports mapping
for mapping := range strings.SplitSeq(v, ";") {
ports := strings.Split(mapping, ":")