Skip to content

Commit

Permalink
removed use of slices to support go 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
resoluteCoder committed Jul 17, 2024
1 parent e693a16 commit 6ad3ef8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/receptor-cl/receptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package main
import (
"fmt"
"os"
"slices"

"github.com/ansible/receptor/cmd"
_ "github.com/ansible/receptor/internal/version"
Expand Down Expand Up @@ -34,8 +33,10 @@ func main() {
cmd.RunConfigV1()
}

if slices.Contains(os.Args, "--help") {
os.Exit(0)
for _, arg := range os.Args {
if arg == "--help" {
os.Exit(0)
}
}

if netceptor.MainInstance.BackendCount() == 0 {
Expand Down

0 comments on commit 6ad3ef8

Please sign in to comment.