Skip to content

Commit

Permalink
removed name check, per feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
markturansky committed Mar 23, 2015
1 parent aa694df commit b7cff5b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions pkg/client/persistentvolumeclaim.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ limitations under the License.
package client

import (
"errors"
"fmt"

"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
Expand Down Expand Up @@ -59,10 +58,6 @@ func (c *persistentVolumeClaims) List(selector labels.Selector) (result *api.Per
}

func (c *persistentVolumeClaims) Get(name string) (result *api.PersistentVolumeClaim, err error) {
if len(name) == 0 {
return nil, errors.New("name is required parameter to Get")
}

result = &api.PersistentVolumeClaim{}
err = c.r.Get().Namespace(c.ns).Resource("persistentVolumeClaims").Name(name).Do().Into(result)
return
Expand Down
5 changes: 0 additions & 5 deletions pkg/client/persistentvolumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ limitations under the License.
package client

import (
"errors"
"fmt"

"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
Expand Down Expand Up @@ -56,10 +55,6 @@ func (c *persistentVolumes) List(selector labels.Selector) (result *api.Persiste
}

func (c *persistentVolumes) Get(name string) (result *api.PersistentVolume, err error) {
if len(name) == 0 {
return nil, errors.New("name is required parameter to Get")
}

result = &api.PersistentVolume{}
err = c.r.Get().Resource("persistentVolumes").Name(name).Do().Into(result)
return
Expand Down

0 comments on commit b7cff5b

Please sign in to comment.