Skip to content

Commit

Permalink
fix sc bug
Browse files Browse the repository at this point in the history
  • Loading branch information
davemolk committed Feb 1, 2023
1 parent c2cfeea commit fa125fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/bye403/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ func (b *bye403) input() string {

func (b *bye403) statusCodes(data string) []int {
codes := strings.Split(data, " ")
sc := make([]int, len(codes))
var sc []int
for _, code := range codes {
c, err := strconv.Atoi(code)
if err != nil {
log.Fatal(err)
continue
}
sc = append(sc, c)
}
Expand Down

0 comments on commit fa125fa

Please sign in to comment.