Skip to content

Commit

Permalink
Merge pull request #6 from anuraaga/fix-lint
Browse files Browse the repository at this point in the history
Fix lint
  • Loading branch information
jptosso authored Sep 9, 2022
2 parents 89aa4a7 + be8237e commit 227e7e7
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 227e7e7

Please sign in to comment.