remove redundant carriage return (cont'd)

This commit is contained in:
Di Xu
2017-05-30 16:29:21 +08:00
parent bc93e7bcde
commit caeb584230
2 changed files with 2 additions and 4 deletions

View File

@@ -298,8 +298,7 @@ func (r *hostPathDeleter) Delete() error {
return os.RemoveAll(r.GetPath())
}
func getVolumeSource(
spec *volume.Spec) (*v1.HostPathVolumeSource, bool, error) {
func getVolumeSource(spec *volume.Spec) (*v1.HostPathVolumeSource, bool, error) {
if spec.Volume != nil && spec.Volume.HostPath != nil {
return spec.Volume.HostPath, spec.ReadOnly, nil
} else if spec.PersistentVolume != nil &&