Skip to content

Commit

Permalink
more lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Mzack9999 committed Dec 1, 2023
1 parent 32013a9 commit d8d032f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ package main

import (
"fmt"
"io/ioutil"
"io"
"log"
"net/http"

Expand All @@ -38,7 +38,7 @@ func main() {
if err != nil {
log.Fatal(err)
}
data, _ := ioutil.ReadAll(resp.Body) // Ignoring error for example
data, _ := io.ReadAll(resp.Body) // Ignoring error for example

wappalyzerClient, err := wappalyzer.New()
fingerprints := wappalyzerClient.Fingerprint(resp.Header, data)
Expand Down
4 changes: 2 additions & 2 deletions cmd/update-fingerprints/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"io"
"log"
"net/http"
"os"
Expand Down Expand Up @@ -127,7 +127,7 @@ func gatherFingerprintsFromURL(URL string, fingerprints *Fingerprints) error {
}
defer resp.Body.Close()

data, err := ioutil.ReadAll(resp.Body)
data, err := io.ReadAll(resp.Body)
if err != nil {
return err
}
Expand Down

0 comments on commit d8d032f

Please sign in to comment.