Skip to content

Commit

Permalink
fixing lint complaining
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberRoute committed Jan 12, 2024
1 parent 403fe8e commit 84e3ce5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scanme/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@ func (s *scanner) sendARPRequest() (net.HardwareAddr, error) {
parser := gopacket.NewDecodingLayerParser(layers.LayerTypeEthernet, &eth, &arp)
decoded := []gopacket.LayerType{}
if err := parser.DecodeLayers(data, &decoded); err != nil {

Check failure on line 127 in scanme/scanner.go

View workflow job for this annotation

GitHub Actions / lint

SA9003: empty branch (staticcheck)
//nolint fmt.Println(err) Errors here are due to the decoder not all layers are implemented
// nolint:staticcheck
// This branch is intentionally left empty (SA9003).
// Errors here are due to the decoder, and not all layers are implemented.
// Uncomment the next line to print the error if needed.
// fmt.Println(err)
}

for _, layerType := range decoded {
Expand Down

0 comments on commit 84e3ce5

Please sign in to comment.