mirror of
https://github.com/coredns/coredns.git
synced 2026-04-05 11:45:33 -04:00
lint(revive): fix unnecessary-stmt violations (#7978)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user