Fix a couple of minor issue for goreportcard and add badge for it.

This commit is contained in:
Tom Wilkie
2016-03-23 16:17:01 +00:00
parent ecab765b07
commit ca4f6ad17c
3 changed files with 10 additions and 5 deletions

View File

@@ -62,6 +62,10 @@ func main() {
}
log.Println(ci.Timestamp.String())
err = parser.DecodeLayers(data, &decoded)
if err != nil {
log.Printf("Error in DecodeLayers: %v", err)
continue
}
for _, t := range decoded {
switch t {
case layers.LayerTypeEthernet: