Remove unused variable from switch in Field (#876)

This commit is contained in:
Tom Thorogood 2018-12-31 02:11:07 +10:30 committed by Miek Gieben
parent 5913ad55e9
commit 67bd05e2f4
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ func Field(r RR, i int) string {
return ""
}
d := reflect.ValueOf(r).Elem().Field(i)
switch k := d.Kind(); k {
switch d.Kind() {
case reflect.String:
return d.String()
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: