Revert "Enhance error message from kubectl when 'kind' is empty"

pull/6/head
Clayton Coleman 2015-05-20 10:32:56 -04:00
parent b6c848c962
commit 633c56f8c0
1 changed files with 0 additions and 3 deletions

View File

@ -46,9 +46,6 @@ func (m *Mapper) InfoForData(data []byte, source string) (*Info, error) {
if err != nil {
return nil, fmt.Errorf("unable to get type info from %q: %v", source, err)
}
if kind == "" {
return nil, fmt.Errorf("kind not set in %q", source)
}
mapping, err := m.RESTMapping(kind, version)
if err != nil {
return nil, fmt.Errorf("unable to recognize %q: %v", source, err)