Rename IsEmpty to Empty

Signed-off-by: Kara Alexandra <kalexandra@us.ibm.com>
This commit is contained in:
Kara Alexandra
2016-08-17 14:09:51 -07:00
parent 5f7875a9bc
commit d12a66a422
12 changed files with 23 additions and 23 deletions

View File

@@ -1270,10 +1270,10 @@ func (f *Factory) PrinterForMapping(cmd *cobra.Command, mapping *meta.RESTMappin
if err != nil {
return nil, err
}
if version.IsEmpty() && mapping != nil {
if version.Empty() && mapping != nil {
version = mapping.GroupVersionKind.GroupVersion()
}
if version.IsEmpty() {
if version.Empty() {
return nil, fmt.Errorf("you must specify an output-version when using this output format")
}