lint(revive): fix unnecessary-stmt violations (#7978)

This commit is contained in:
Ville Vesilehto
2026-03-30 03:02:03 +03:00
committed by GitHub
parent 867cd8fd6b
commit 6af8fd46fe
5 changed files with 45 additions and 46 deletions

View File

@@ -90,8 +90,7 @@ func parse(c *caddy.Controller) (string, monitorType, error) {
}
for c.NextBlock() {
switch c.Val() {
case "monitor":
if c.Val() == "monitor" {
args := c.RemainingArgs()
if len(args) != 1 {
return "", "", c.ArgErr()