Clean up pkg/apis.
These are based on recommendation from [staticcheck](http://staticcheck.io/).
This commit is contained in:
@@ -247,7 +247,7 @@ func validateVolumeBindingMode(mode *storage.VolumeBindingMode, fldPath *field.P
|
||||
func validateAllowedTopologies(topologies []api.TopologySelectorTerm, fldPath *field.Path) field.ErrorList {
|
||||
allErrs := field.ErrorList{}
|
||||
|
||||
if topologies == nil || len(topologies) == 0 {
|
||||
if len(topologies) == 0 {
|
||||
return allErrs
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user