mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 13:09:49 -07:00
Remove nil check for empty map.
This commit is contained in:
parent
8c3f60641e
commit
3b57b0cb38
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func upnpParser(ip *layers.IPv4, pkt gopacket.Packet, udp *layers.UDP) bool {
|
func upnpParser(ip *layers.IPv4, pkt gopacket.Packet, udp *layers.UDP) bool {
|
||||||
if data := packets.UPNPGetMeta(pkt); data != nil && len(data) > 0 {
|
if data := packets.UPNPGetMeta(pkt); len(data) > 0 {
|
||||||
s := ""
|
s := ""
|
||||||
for name, value := range data {
|
for name, value := range data {
|
||||||
s += fmt.Sprintf("%s:%s ", tui.Blue(name), tui.Yellow(value))
|
s += fmt.Sprintf("%s:%s ", tui.Blue(name), tui.Yellow(value))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue