Fix all go vet issues

This commit is contained in:
Sean DuBois
2018-06-12 01:03:01 -07:00
parent 698cbc8512
commit 311cdcb1da
2 changed files with 2 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ func attributeValid(statuses []*attributeStatus, attribute string) (err error) {
if v.value == attribute {
if v.seen && !v.allowMultiple {
return errors.Errorf("Attribute %s was attempted to be set twice", attribute, v.value)
return errors.Errorf("Attribute %s was attempted to be set twice: %v", attribute, v.value)
}
attrFound = true
v.seen = true
@@ -210,9 +210,7 @@ func (s *SessionDescription) unmarshalMedias(scanner *bufio.Scanner, firstMediaN
case "a":
currentMedia.Attributes = append(currentMedia.Attributes, value)
default:
return errors.Errorf("Invalid media attribute: %s")
return errors.Errorf("Invalid media attribute: %s", key)
}
}
return nil
}