Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraaga committed Sep 9, 2022
1 parent 89aa4a7 commit be8237e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sqli_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func parseByteFunctions(s *sqliState, parse byte) int {
}

func buildByteParsers() []byteParser {
parsers := make([]byteParser, 256, 256)
parsers := make([]byteParser, 256)
for i := 0; i < 256; i++ {
switch i {
case 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32:
Expand Down
4 changes: 2 additions & 2 deletions xss_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package libinjection

import (
"fmt"
"io/ioutil"
"os"
"strings"
"testing"
)
Expand Down Expand Up @@ -108,7 +108,7 @@ func runXSSTest(filename, flag string) {

func TestXSSDriver(t *testing.T) {
baseDir := "./tests/"
dir, err := ioutil.ReadDir(baseDir)
dir, err := os.ReadDir(baseDir)
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit be8237e

Please sign in to comment.